:root {
  --ink:#192e2a;
  --muted:#556b64;
  --line:#dce5df;
  --green:#106452;
  --soft:#eaf4ee;
  --sheet:#fff;
  color:var(--ink);
  background:#f3f6f4;
  font:16px/1.55 "Inter","PingFang SC","Microsoft YaHei",system-ui,sans-serif;
  font-synthesis:none;
}
* { box-sizing:border-box }
body { margin:0 }
[hidden] { display:none!important }
button,input { font:inherit }
button { color:inherit;cursor:pointer }
a { color:inherit;text-decoration:none }
button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible,[tabindex]:focus-visible {
  outline:3px solid #279880;outline-offset:2px;
}
h1,h2,h3,p { margin:0 }
.header-inner,.page { width:min(calc(100% - 64px),1200px);margin-inline:auto }
.masthead { background:var(--sheet);border-bottom:1px solid var(--line) }
.header-inner { display:flex;align-items:center;min-height:72px;gap:clamp(1rem,4vw,3.5rem) }
.brand { display:inline-flex;min-width:0;align-items:center;gap:10px;font-size:1.22rem;font-weight:750;letter-spacing:-.025em }
.brand img { flex:none;object-fit:contain }
.brand span { overflow-wrap:anywhere }
.primary-nav { display:flex;align-self:stretch;align-items:stretch;gap:22px }
.primary-nav a { display:grid;place-items:center;position:relative;white-space:nowrap;font-size:.94rem;color:var(--muted);font-weight:600 }
.primary-nav a[aria-current=page] { color:var(--green) }
.primary-nav a[aria-current=page]::after { position:absolute;content:"";bottom:0;left:0;right:0;height:3px;border-radius:2px 2px 0 0;background:var(--green) }
.primary-nav a:hover { color:#088268 }
.settings-button { display:flex;align-items:center;justify-content:center;gap:6px;margin-left:auto;min-height:38px;border:1px solid var(--line);border-radius:9px;padding:4px 12px;background:white;font-size:.9rem;font-weight:600 }
.settings-button span:first-child { font-size:1.25rem;line-height:1 }
.settings-button:hover,.more:hover { background:var(--soft) }
.page { padding:26px 0 24px }
.home-articles { margin-top:20px;padding:0 clamp(14px,2.2vw,22px);border:1px solid var(--line);border-radius:15px;background:var(--sheet) }
.home-articles h2 { padding:16px 0 12px }
.home-articles ul { list-style:none;padding:0;margin:0 0 5px }
.home-articles li { display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"title date" "summary summary";gap:4px 16px;align-items:baseline;padding:13px 0;border-top:1px solid var(--line) }
.home-articles a { grid-area:title;justify-self:start;color:var(--green);font-weight:600;overflow-wrap:anywhere }
.home-articles a:hover { text-decoration:underline;text-underline-offset:.2em }
.home-articles .article-summary { grid-area:summary;max-width:78ch;color:var(--ink);font-size:.94rem;line-height:1.7;overflow-wrap:anywhere }
.home-articles time { grid-area:date;color:var(--muted);font-size:.82rem;font-variant-numeric:tabular-nums }
@media(max-width:560px) {
  .home-articles li { grid-template-columns:minmax(0,1fr);grid-template-areas:"title" "summary" "date";gap:4px;padding:12px 0 }
}
.page-heading,.section-heading,.draw-top,.modal-heading,.setting-row { display:flex;align-items:center;justify-content:space-between;gap:12px }
.page-heading { margin:0 0 16px;flex-wrap:wrap;gap:3px 18px }
h1 { font-size:clamp(1.5rem,2.3vw,1.85rem);font-weight:750;letter-spacing:-.045em;line-height:1.3 }
h2,.filter-card summary { font-size:1.12rem;font-weight:700;line-height:1.5 }
.feed-status { font-size:.83rem;color:var(--muted);font-variant-numeric:tabular-nums }
.notice,.load-status { padding:10px 16px;margin-bottom:14px;background:#fff8e7;color:#694b18;border:1px solid #ecdfb9;border-radius:9px;white-space:pre-line;overflow-wrap:anywhere }
.load-status button { margin-inline:8px;border:1px solid #bbaf90;border-radius:5px;background:white }
.data-layout { display:grid;grid-template-columns:minmax(0,1.97fr) minmax(290px,1fr);gap:20px;align-items:start }
.draw-panel { overflow:hidden;min-width:0;border-radius:16px;min-height:235px;margin-bottom:20px;padding:20px 26px;color:#fff;background-color:#163e34;background-image:linear-gradient(95deg,#082f2c91,#0c342f31 62%,#0c342f05),url("assets/rockies.webp");background-size:cover;background-position:center }
.draw-top { justify-content:flex-start;gap:9px }
.draw-top h2 { font-size:.94rem;color:#e4f5ea;font-weight:650 }
#demo-tag,.trend-demo { font-size:.76rem;border-radius:5px;padding:1px 6px;background:#ffffff26;color:#fff }
#open-peek { display:inline-flex;align-items:center;justify-content:center;gap:7px;margin-left:auto;min-height:34px;border:1px solid #d1ece366;border-radius:20px;background:#133c34c9;color:white;padding:4px 13px;font-size:.84rem }
#open-peek:hover,#open-peek[aria-pressed=true] { background:#dff3e6;color:#173c32 }
.eye { position:relative;width:15px;height:10px;border:1.5px solid currentColor;border-radius:70% 25%;transform:rotate(20deg) }
.eye::after { content:"";position:absolute;left:4px;top:1px;width:4px;height:4px;border:1px solid currentColor;border-radius:50% }
.draw-id { display:flex;align-items:baseline;gap:3px 15px;flex-wrap:wrap;margin:3px 0 13px }
.draw-id strong { font:700 clamp(1.32rem,2.5vw,1.9rem)/1.35 "Inter","PingFang SC",system-ui,sans-serif;letter-spacing:-.025em }
.draw-id time { color:#e3ede8;font-size:.86rem;font-variant-numeric:tabular-nums }
.equation { display:flex;align-items:center;gap:clamp(4px,.9vw,12px);min-height:60px }
.number { display:grid;place-items:center;flex:none;width:clamp(44px,4.7vw,62px);aspect-ratio:1;border-radius:50%;background:linear-gradient(#fff,#e6f3eb);border:1px solid #ffffffe0;box-shadow:0 3px 7px #031b262c;color:#143b31;font:710 clamp(1.5rem,2.7vw,2.18rem)/1 "Inter",Arial,sans-serif;font-variant-numeric:tabular-nums }
.number.sum { background:#bfedce;color:#083c2c;border-color:#defbe9 }
.sign { color:#eff5f0;font-size:1.18rem;font-weight:600 }
.draw-flags { display:flex;align-items:center;gap:5px;padding-left:5px }
.draw-flags span { display:grid;place-items:center;width:28px;height:28px;border:1px solid #ffffff65;border-radius:7px;background:#113d36c7;color:#fff;font-weight:600;font-size:.91rem }
.countdown { margin-top:17px;min-height:22px;font-size:.87rem;color:#e3f3e8;font-variant-numeric:tabular-nums }
.countdown strong { color:#fff;font-weight:750 }
.draw-reveal { position:relative;width:max-content;max-width:100% }
.draw-reveal.is-scratching { overflow:hidden;border-radius:10px }
.draw-reveal.peek-enabled .equation { min-height:52px;padding:3px 5px }
#scratch-cover { position:absolute;inset:0;display:block;width:100%;height:100%;touch-action:none;user-select:none;-webkit-user-select:none;cursor:crosshair }
#scratch-cover[hidden] { display:none }
#scratch-cover:focus-visible { outline:3px solid #144e3e;outline-offset:-4px }
.peek-loading #equation,.peek-loading #records { visibility:hidden }
.peek-loading .draw-reveal { background:#b8c3c1;border-radius:10px }
.history-card,.filter-card,.trend-card { border:1px solid var(--line);background:var(--sheet);border-radius:15px;min-width:0;overflow:hidden }
.reading-column,.right-rail { min-width:0 }
.right-rail { display:flex;flex-direction:column;gap:17px }
.section-heading { padding:18px 21px 14px }
#history-scope { color:var(--green);font-size:.86rem;font-weight:600 }
.prediction-status { font-size:.87rem;color:var(--muted);margin:-4px 21px 14px;line-height:1.55 }
.filter-card summary { padding:17px 19px;display:flex;align-items:center;justify-content:space-between;cursor:pointer;list-style:none }
.filter-card summary::-webkit-details-marker { display:none }
.filter-card summary::after { content:"";width:7px;height:7px;border:solid #5e746c;border-width:0 1.5px 1.5px 0;transform:rotate(45deg);margin-right:2px }
.filter-card[open] summary::after { transform:rotate(225deg) }
.filter-inner { padding:0 18px 19px }
.filter-inner h3 { color:var(--muted);font-size:.85rem;font-weight:600;margin:1px 0 8px }
.filter-inner nav + h3 { margin-top:15px }
.categories,.algorithms { display:grid;gap:5px;grid-template-columns:repeat(4,minmax(0,1fr)) }
.categories a,.algorithms a { display:flex;min-width:0;align-items:center;justify-content:center;min-height:36px;border-radius:6px;border:1px solid #dce6df;background:#fafcfb;padding:5px 2px;font-size:.85rem;text-align:center }
.algorithms a { flex-direction:column;min-height:45px;line-height:1.35 }
.categories a:hover,.algorithms a:hover { background:#e8f4ec;border-color:#a2c2b5 }
.categories a[aria-current=page] { background:var(--green);color:white;border-color:var(--green);font-weight:650 }
.algorithms a[aria-current=page] { background:#e5f4e9;border-color:#79aa93;color:#105840;font-weight:650 }
.rate { color:#5f7169;font-size:.76rem;font-variant-numeric:tabular-nums }
.recommend { color:#8c511f;font-size:.68em;margin-left:1px }
.table-frame,.trend-table-wrap,.road-scroll { overflow-x:auto }
.records,.trend-table { width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums }
.records { text-align:center }
.records th,.records td { padding:10px 7px;border-top:1px solid #e5ebe7;font-size:.94rem }
.records th { padding-block:9px;background:#f3f7f4;color:#52685e;font-weight:600;font-size:.84rem;white-space:nowrap }
.records th:first-child,.records td:first-child { text-align:left;padding-left:21px }
.records td:first-child { font-weight:650;letter-spacing:.02em }
.records tr:nth-child(even) { background:#fbfcfb }
.records tbody tr:hover { background:#f4f8f5 }
.records .pending { background:#fffcf4 }
.mini-draw { display:inline-flex;align-items:center;justify-content:center;gap:4px }
.mini-ball,.sum-chip { display:inline-grid;min-width:26px;height:26px;place-items:center;line-height:1;background:#f0f3f1;color:#263c32;border:1px solid #e1e8e2;border-radius:50%;font-family:"Inter",Arial,sans-serif;font-weight:650 }
.mini-plus { font-size:.78rem;color:#76897f }
.sum-chip { min-width:30px;padding:0 5px;border-radius:6px;color:#116447;background:#e9f3ec;border-color:transparent }
.badge,.peek-mask,.trend-hit { display:inline-block;border-radius:5px;padding:2px 6px;font-size:.88em;font-weight:600 }
.tone-red { color:#923241;background:#fceced }.tone-blue { color:#235a87;background:#e8f1fa }.tone-plain,.peek-mask { color:#4e665b;background:#edf2ee }
.no-data { color:var(--muted);padding:26px!important;text-align:center!important }
.more { display:block;margin:14px auto;padding:7px 20px;border:1px solid var(--line);border-radius:8px;background:white;font-size:.9rem }
.banner-list { display:grid;grid-template-columns:minmax(0,1fr);gap:8px }
.banner-list:empty { display:none }
.top-banners { margin-bottom:16px }
.banner-list>a,.banner-list>div { display:block;min-width:0;overflow:hidden;border-radius:9px;background:#fff }
.banner-list img { display:block;width:100%;height:auto }
.banner-list a:hover img { filter:brightness(1.045) }
.banner-list img.missing { min-height:44px;padding:10px;color:#554d40;background:#f6f0e4;text-align:center }
.data-layout:has(#trend-view:not([hidden])) { grid-template-columns:minmax(0,1fr) }
.data-layout:has(#trend-view:not([hidden])) .banners { grid-template-columns:repeat(2,minmax(0,1fr)) }
.trend-card { padding:0 20px 19px }
.trend-card .section-heading { padding:16px 0 7px }
.trend-demo { background:var(--soft);color:var(--green) }
.trend-switch,.sub-switch { display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 14px }
.trend-switch button,.sub-switch button { border:1px solid var(--line);border-radius:7px;padding:6px 14px;min-height:36px;background:white;color:var(--muted);font-size:.9rem }
.trend-switch button[aria-pressed=true],.sub-switch button[aria-pressed=true] { color:var(--green);border-color:#8bb9a5;background:var(--soft);font-weight:650 }
.trend-table { white-space:nowrap;text-align:center;font-size:.88rem }
.trend-table th,.trend-table td { border:1px solid #e0e9e3;padding:6px 4px;min-width:30px }
.trend-table th,.trend-table tr:nth-child(even) { background:#f1f6f2 }
.trend-table .gaps td { color:var(--muted) }
.chart-panel,.road-block { padding:12px;margin:10px 0 0;border:1px solid var(--line);border-radius:9px }
.chart-title,.road-block h3 { margin:0 0 10px;font-size:.96rem }
.chart-panel canvas { display:block;width:100%;height:250px }
.road { display:flex;width:max-content;min-width:100% }
.road-column { display:flex;flex-direction:column;border-left:1px solid var(--line);min-width:32px }
.road-column:last-child { border-right:1px solid var(--line) }
.road-cell { display:grid;place-items:center;border-bottom:1px solid var(--line);min-height:31px;font-size:.84rem }
.bead { display:grid;place-items:center;min-width:25px;height:25px;border-radius:50%;color:white;font-weight:650 }
.bubble-blue { background:#3a70a1 }.bubble-red { background:#a83c48 }.bubble-green { background:#28745d }.bubble-purple { background:#76549b }
.footer { margin-top:24px;padding:14px 0;border-top:1px solid var(--line);font-size:.84rem;color:var(--muted) }
.footer p { white-space:pre-line;overflow-wrap:anywhere }
.modal { width:min(400px,90vw);border:1px solid var(--line);border-radius:15px;padding:20px;color:var(--ink);box-shadow:0 18px 64px #132a2533 }
.modal::backdrop { background:#0e262164 }.modal .close { border:0;background:#f0f5f2;color:var(--muted);border-radius:50%;height:34px;width:34px;font-size:1.5rem }
.setting-row { margin-top:17px;cursor:pointer }.setting-row input { width:22px;height:22px;accent-color:var(--green) }
.toast { position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#193a32;color:white;padding:9px 18px;border-radius:9px;z-index:2;font-size:.9rem;white-space:nowrap }
#history,#algorithms { scroll-margin-top:12px }
@media(max-width:960px) {
  .header-inner,.page { width:calc(100% - 40px) }
  .data-layout { gap:14px;grid-template-columns:minmax(0,1.7fr) minmax(280px,1fr) }
  .draw-panel { padding:17px 18px }.filter-inner { padding-inline:12px }
  .mini-draw { gap:2px }
}
@media(max-width:760px) {
  .header-inner,.page { width:calc(100% - 28px) }
  .header-inner { gap:clamp(9px,4vw,20px);min-height:57px }
  .brand { gap:6px;font-size:1rem }.brand img { width:32px;height:32px }
  .primary-nav { gap:12px }.primary-nav a { font-size:.88rem }
  .settings-button { width:36px;height:36px;padding:0;min-height:36px;flex:none }.settings-button span:last-child { display:none }
  .page { padding-top:17px }.page-heading { margin-bottom:12px;align-items:flex-start;flex-direction:column }
  .feed-status { font-size:.76rem }
  .top-banners { margin-bottom:12px }
  .draw-panel { min-height:0;margin-bottom:12px;padding:14px 17px 16px }.draw-id { margin:2px 0 12px }
  .draw-id time { font-size:.81rem }.equation { min-height:42px }.countdown { margin-top:13px;min-height:0 }
  .data-layout { display:flex;flex-direction:column;gap:12px;align-items:stretch }
  .reading-column,.right-rail { display:contents }
  .filter-card { order:0 }.history-card,#prediction-view,.trend-card { order:1 }.banners { order:2;grid-template-columns:repeat(2,minmax(0,1fr)) }
  .filter-card summary { padding:13px 15px;min-height:45px }.filter-inner { padding:0 14px 15px }
  .categories a,.algorithms a { min-height:42px }
  .section-heading { padding:14px 13px 10px }.prediction-status { margin:0 13px 10px;font-size:.81rem }
  .records td,.records th { font-size:.84rem;padding:9px 3px }
  .records td:first-child,.records th:first-child { padding-left:10px }
  .records th { font-size:.81rem }.mini-ball { width:21px;min-width:21px;height:21px }.sum-chip { height:23px;min-width:26px }
  .mini-draw { gap:2px }.mini-plus { font-size:.64rem }
  .trend-card { padding:0 12px 13px }.footer { margin-top:18px;font-size:.8rem }
}
@media(max-width:480px) {
  .trial-nav-header { display:grid;grid-template-columns:1fr auto;gap:0;padding-top:7px }
  .trial-nav-header .brand { grid-column:1;grid-row:1;justify-self:start;min-height:36px }
  .trial-nav-header .settings-button { grid-column:2;grid-row:1 }
  .trial-nav-header .primary-nav { grid-column:1/-1;grid-row:2;justify-content:space-between;gap:8px }
  .trial-nav-header .primary-nav a { min-height:40px;font-size:.88rem }
  .banners,.data-layout:has(#trend-view:not([hidden])) .banners { grid-template-columns:1fr }
}
@media(max-width:370px) {
  .page,.header-inner { width:calc(100% - 20px) }.header-inner { gap:8px }.primary-nav { gap:9px }
  .brand { font-size:.94rem }.brand img { width:28px;height:28px }.primary-nav a { font-size:.8rem }
  .draw-panel { padding:12px }.number { width:38px }.equation { gap:4px }.draw-flags { gap:3px;padding-left:1px }.draw-flags span { width:22px;height:23px }
  .mini-ball { width:19px;min-width:19px;height:19px }.mini-draw { gap:1px }
}
