:root {
  color-scheme: light;
  --ink: #172a2e;
  --ink-soft: #274348;
  --sea: #12363b;
  --sea-deep: #0c282d;
  --paper: #f5f1e8;
  --paper-bright: #fffdf8;
  --sand: #e8e1d3;
  --line: #d9d2c5;
  --muted: #667573;
  --sage: #829d8c;
  --lime: #e8dba9;
  --coral: #d67455;
  --shadow: 0 18px 55px rgba(26, 48, 49, .09);
  --sans: 'Segoe UI', system-ui, sans-serif;
  --serif: Georgia, 'Times New Roman', serif;
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #b36c4b; outline-offset: 3px; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

.skip-link { position: absolute; z-index: 100; top: -60px; left: 16px; padding: 10px 14px; background: var(--paper-bright); border-radius: 8px; }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 30; height: 82px; display: flex; align-items: center; gap: 30px; padding: 0 clamp(20px, 5vw, 76px); background: rgba(245, 241, 232, .93); border-bottom: 1px solid rgba(217, 210, 197, .7); backdrop-filter: blur(16px); }
.brand-lockup { display: inline-flex; align-items: center; gap: 11px; min-width: 205px; }
.brand-lockup img { width: 42px; height: 42px; border-radius: 12px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-size: 20px; letter-spacing: -.7px; font-weight: 700; }
.brand-text small { margin-top: 5px; color: var(--muted); font-size: 9px; letter-spacing: 1.7px; font-weight: 700; }
.header-note { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px rgba(214, 116, 85, .13); }
.primary-nav { margin-left: auto; display: flex; align-items: center; gap: 25px; height: 100%; }
.primary-nav a { display: flex; align-items: center; position: relative; height: 100%; color: #627270; font-size: 13px; font-weight: 600; transition: color .18s ease; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--ink); }
.primary-nav a[aria-current="page"]::after { content: ''; position: absolute; bottom: 18px; left: 0; right: 0; height: 2px; border-radius: 2px; background: var(--coral); }
.menu-toggle, .mobile-nav { display: none; }

.snapshot-banner { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 7px clamp(20px, 5vw, 76px); background: #eae4d7; color: #405456; font-size: 11px; letter-spacing: .1px; }
.snapshot-banner strong { color: var(--ink); font-size: 11px; }
.snapshot-copy { color: #586965; }
.snapshot-icon { color: #a7583b; font-size: 19px; line-height: 1; }
.snapshot-banner a { margin-left: auto; font-weight: 700; white-space: nowrap; }
.snapshot-banner a:hover { color: #a7583b; }

#main-content { min-height: 60vh; }
.hero-intro { position: relative; isolation: isolate; overflow: hidden; min-height: 390px; display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 62px clamp(24px, 8vw, 120px) 68px; color: #f7f3e9; background: var(--sea); }
.hero-intro::before { content: ''; position: absolute; z-index: -1; inset: 0; background: radial-gradient(ellipse at 78% 28%, rgba(198, 219, 184, .14), transparent 34%), linear-gradient(112deg, rgba(10, 37, 42, .94), rgba(18, 54, 59, .94) 58%, rgba(27, 73, 73, .92)); }
.hero-copy { position: relative; z-index: 2; width: min(630px, 66%); }
.eyebrow { display: block; color: #9aab9d; font-size: 10px; line-height: 1.3; letter-spacing: 1.8px; font-weight: 700; text-transform: uppercase; }
.hero-eyebrow { color: #c5d1c4; }
h1, h2, h3, p { margin-top: 0; }
.hero-copy h1 { margin: 20px 0 17px; font-family: var(--serif); font-size: clamp(53px, 7vw, 83px); font-weight: 500; letter-spacing: -2.5px; line-height: .99; }
.hero-copy h1 em, .analysis-preview h3 em { color: var(--lime); font-weight: 500; }
.hero-copy > p { max-width: 480px; margin-bottom: 24px; color: #d2ddd1; font-size: 15px; line-height: 1.75; }
.hero-cta { display: inline-flex; align-items: center; gap: 12px; padding: 13px 17px; border: 1px solid rgba(232, 219, 169, .47); border-radius: 5px; color: var(--lime); font-size: 12px; font-weight: 700; transition: background .18s ease, transform .18s ease; }
.hero-cta:hover { background: rgba(232, 219, 169, .12); transform: translateY(-2px); }
.hero-side-note { position: relative; z-index: 2; width: 230px; margin: 70px 3vw 0 0; padding: 19px 0 16px 20px; border-left: 1px solid rgba(232, 219, 169, .45); }
.hero-spark { display: inline-grid; width: 30px; height: 30px; place-items: center; margin-bottom: 8px; border: 1px solid rgba(232, 219, 169, .55); border-radius: 50%; color: var(--lime); font-size: 15px; }
.note-label { margin-bottom: 5px; color: var(--lime); font-size: 11px; font-weight: 700; letter-spacing: .7px; }
.hero-side-note p:not(.note-label) { margin-bottom: 11px; color: #e0e3d6; font-family: var(--serif); font-size: 17px; line-height: 1.5; }
.hero-side-note a { color: #afc7b4; font-size: 11px; font-weight: 700; }
.hero-orbit { position: absolute; z-index: 1; border: 1px solid rgba(232, 219, 169, .12); border-radius: 50%; pointer-events: none; }
.orbit-one { width: 390px; height: 390px; top: -205px; right: 24%; }
.orbit-two { width: 285px; height: 285px; top: -153px; right: calc(24% + 53px); }
.orbit-three { width: 176px; height: 176px; top: -98px; right: calc(24% + 108px); border-color: rgba(214, 116, 85, .45); }

.dashboard-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(24px, 4.5vw, 68px); max-width: 1500px; margin: 0 auto; padding: 57px clamp(20px, 5vw, 76px) 66px; }
.game-rail { padding: 2px 0 0; }
.rail-heading h2 { margin: 9px 0 2px; font-family: var(--serif); font-size: 28px; font-weight: 500; letter-spacing: -.5px; }
.rail-heading p { margin: 0 0 22px; color: var(--muted); font-size: 12px; }
.game-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.game-list li { border-bottom: 1px solid var(--line); }
.game-link { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 7px 8px; transition: background .17s ease, padding .17s ease; }
.game-link:hover, .game-link.is-selected { padding-left: 14px; background: rgba(255, 253, 248, .68); }
.game-index { width: 22px; color: var(--game-accent); font-size: 10px; font-weight: 700; letter-spacing: .5px; }
.game-link-name { flex: 1; font-size: 12px; font-weight: 600; }
.game-link-arrow { color: #8c9a94; opacity: 0; transition: opacity .17s ease; }
.game-link:hover .game-link-arrow, .game-link.is-selected .game-link-arrow { opacity: 1; }
.rail-footnote { display: flex; gap: 12px; align-items: flex-start; margin-top: 24px; padding: 13px 12px; background: #e9e4d9; }
.mini-star { color: var(--coral); font-size: 17px; }
.rail-footnote p { margin: 0; color: #526361; font-family: var(--serif); font-size: 13px; line-height: 1.45; }
.board-main { min-width: 0; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; margin-bottom: 20px; }
.section-heading .eyebrow { color: #748881; }
.section-heading h2 { margin: 5px 0 2px; font-family: var(--serif); font-size: 31px; line-height: 1.2; font-weight: 500; letter-spacing: -.7px; }
.section-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.text-link { color: #28605e; font-size: 12px; font-weight: 700; white-space: nowrap; }
.text-link:hover { color: #a7573a; }
.toolbar { display: flex; align-items: center; gap: 14px; margin-bottom: 15px; }
.search-box { display: flex; align-items: center; flex: 1; min-height: 44px; gap: 10px; padding: 0 12px; background: var(--paper-bright); border: 1px solid var(--line); border-radius: 5px; color: #75827d; }
.search-box > span { font-size: 22px; }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 12px; }
.search-box input::placeholder { color: #8a9690; }
.search-box kbd { padding: 2px 6px; border: 1px solid #e0dbd1; border-radius: 4px; color: #7c8983; font-size: 10px; white-space: nowrap; }
.toolbar-count { color: var(--muted); font-size: 11px; white-space: nowrap; }
.results-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.draw-card { position: relative; min-width: 0; padding: 17px 18px 13px; border: 1px solid var(--line); border-top: 3px solid var(--game-accent); background: var(--paper-bright); box-shadow: 0 8px 23px rgba(23, 42, 46, .025); transition: transform .18s ease, box-shadow .18s ease; }
.draw-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.draw-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.game-kicker { color: var(--game-accent); font-size: 11px; font-weight: 700; letter-spacing: .45px; }
.draw-date { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.favorite-toggle { width: 31px; height: 31px; margin: -5px -4px 0 0; border: 1px solid transparent; border-radius: 50%; background: transparent; color: #a7863c; font-size: 20px; line-height: 1; }
.favorite-toggle:hover, .favorite-toggle[aria-pressed="true"] { border-color: #e2d8bb; background: #f9f4e2; }
.result-tokens { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; min-height: 51px; padding: 10px 0 9px; }
.result-token { display: inline-grid; min-width: 36px; height: 36px; place-items: center; padding: 0 8px; border: 1px solid #e7e0d2; border-radius: 50%; background: #f5f1e8; color: var(--ink); font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 700; }
.token-symbol { min-width: 34px; height: 30px; border-radius: 5px; border-color: transparent; background: #e8eee5; color: #48695b; font-size: 10px; letter-spacing: .2px; }
.draw-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 9px; border-top: 1px solid #ece7dc; color: var(--muted); font-size: 10px; }
.draw-card-bottom strong { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.draw-card-bottom a { color: #426f68; font-weight: 700; }
.draw-card-bottom a:hover { color: #a7573a; }
.result-extras { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
.result-extra { display: flex; gap: 5px; color: var(--muted); font-size: 9px; }
.result-extra strong { color: var(--ink-soft); }
.draw-status { color: #8e644d; font-size: 8px; letter-spacing: 1px; font-weight: 700; }
.draw-card-compact { padding: 15px 16px 12px; }
.draw-card-compact .result-tokens { min-height: 47px; }
.feed-setup-card { display: flex; align-items: center; gap: 15px; margin-top: 18px; padding: 16px 18px; border: 1px solid #d9d3c5; background: #ece8dd; }
.feed-pulse { flex: 0 0 auto; width: 11px; height: 11px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 6px rgba(214, 116, 85, .1); }
.feed-setup-card .eyebrow { color: #897960; }
.feed-setup-card h3 { margin: 3px 0 2px; font-family: var(--serif); font-size: 18px; font-weight: 500; }
.feed-setup-card p { margin: 0; color: #5c6a65; font-size: 11px; }
.feed-setup-card > a { margin-left: auto; color: #28605e; font-size: 11px; font-weight: 700; white-space: nowrap; }

.lower-layout { display: grid; grid-template-columns: minmax(185px, .7fr) minmax(0, 1.8fr); gap: 45px; align-items: center; padding: 58px clamp(20px, 8vw, 120px); background: #e9e3d7; }
.lower-heading .eyebrow { color: #72847d; }
.lower-heading h2 { max-width: 240px; margin: 8px 0; font-family: var(--serif); font-size: 32px; line-height: 1.13; font-weight: 500; }
.lower-heading p { max-width: 255px; margin-bottom: 0; color: #5f6d68; font-size: 12px; line-height: 1.7; }
.analysis-preview { display: flex; align-items: center; justify-content: space-between; gap: 25px; min-height: 220px; padding: 25px 30px; background: var(--sea); color: #f7f3e9; }
.analysis-preview-copy { flex: 0 0 210px; }
.chart-label { color: #a9c0ad; font-size: 9px; letter-spacing: 1.6px; font-weight: 700; }
.analysis-preview h3 { margin: 6px 0; font-family: var(--serif); font-size: 27px; line-height: 1.15; font-weight: 500; }
.analysis-preview p { margin: 0 0 12px; color: #c3d1c7; font-size: 11px; }
.analysis-preview .text-link { color: var(--lime); }
.frequency-chart { width: 100%; min-width: 0; max-height: 250px; overflow: visible; }
.chart-gridline { stroke: rgba(183, 199, 182, .22); stroke-width: 1; }
.chart-axis-label { fill: #c4d0c5; font-family: var(--sans); font-size: 10px; }
.chart-bar { fill: #cad99e; transition: height .2s ease, y .2s ease; }
.chart-bar:nth-of-type(3n) { fill: #d5815e; }
.chart-empty-text { fill: #d0d9cf; font-size: 12px; font-family: var(--sans); }

.source-strip { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 41px clamp(20px, 8vw, 120px); border-bottom: 1px solid var(--line); }
.source-strip .eyebrow { color: #71847e; }
.source-strip h2 { margin: 6px 0 3px; font-family: var(--serif); font-size: 25px; font-weight: 500; }
.source-strip p { margin: 0; color: var(--muted); font-size: 12px; }
.source-button { flex: 0 0 auto; padding: 12px 17px; border: 1px solid var(--sea); color: var(--sea); font-size: 12px; font-weight: 700; transition: color .18s ease, background .18s ease; }
.source-button:hover { background: var(--sea); color: var(--paper-bright); }

.page-heading { padding: 59px clamp(20px, 8vw, 120px) 49px; background: #ebe5d9; }
.page-heading .eyebrow { color: #74877f; }
.page-heading h1 { max-width: 880px; margin: 10px 0 8px; font-family: var(--serif); font-size: clamp(42px, 6vw, 65px); font-weight: 500; line-height: 1.04; letter-spacing: -1.5px; }
.page-heading > p { max-width: 640px; margin: 0; color: #596a66; font-size: 14px; line-height: 1.7; }
.page-heading-game { border-left: 6px solid var(--game-accent); }
.page-heading-game h1 { color: var(--ink); }
.page-heading-game > p { font-family: var(--serif); font-size: 18px; }
.back-link { display: inline-flex; margin-bottom: 18px; color: #4a706b; font-size: 11px; font-weight: 700; }
.back-link:hover { color: #a7573a; }
.game-detail-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; max-width: 1500px; margin: 0 auto; padding: 47px clamp(20px, 5vw, 76px) 70px; }
.game-detail-layout > .game-rail { max-width: 220px; }
.game-detail-main { min-width: 0; }
.detail-summary { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 16px 20px; margin-bottom: 33px; border: 1px solid var(--line); background: var(--paper-bright); }
.detail-summary .eyebrow { color: #7d8e84; }
.detail-summary h2 { margin: 5px 0 3px; font-size: 15px; line-height: 1.45; }
.detail-summary p { margin: 0; color: var(--muted); font-size: 10px; }
.detail-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin-bottom: 25px; }
.game-chart-panel { padding: 20px 22px; border: 1px solid var(--line); background: var(--sea); color: #f7f3e9; }
.chart-panel-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 8px; }
.chart-panel-heading .eyebrow { color: #a6bdad; }
.chart-panel-heading h2, .chart-panel-heading h3 { margin: 5px 0 0; font-family: var(--serif); font-size: 22px; font-weight: 500; }
.chart-window { color: #d6dfd1; font-size: 10px; white-space: nowrap; }
.chart-footnote { margin: 3px 0 0; color: #c4d0c5; font-size: 10px; }

.archive-panel { max-width: 1300px; margin: 35px auto 80px; padding: 0 clamp(20px, 5vw, 76px); }
.archive-controls { display: grid; grid-template-columns: 1fr 1.5fr 1fr 1fr; gap: 12px; padding: 16px; background: var(--paper-bright); border: 1px solid var(--line); }
.archive-controls label, .analysis-controls label { display: grid; gap: 5px; color: #6b7b76; font-size: 10px; letter-spacing: .7px; font-weight: 700; text-transform: uppercase; }
.archive-controls input, .archive-controls select, .analysis-controls select { min-width: 0; height: 39px; padding: 0 10px; border: 1px solid #ded8cc; border-radius: 3px; background: #fffdf8; color: var(--ink); font-size: 12px; text-transform: none; }
.archive-table-wrap { overflow-x: auto; margin-top: 15px; border: 1px solid var(--line); background: var(--paper-bright); }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { padding: 13px 15px; border-bottom: 1px solid #ece7dd; text-align: left; font-size: 11px; }
th { background: #ece7dc; color: #64756f; font-size: 9px; letter-spacing: 1px; text-transform: uppercase; }
td { color: #485b58; }
td:first-child a { color: var(--ink); font-weight: 700; }
td:first-child a:hover, .table-source:hover { color: var(--coral); }
.table-source { color: #3a7068; font-weight: 700; white-space: nowrap; }
.archive-empty { padding: 18px; text-align: center; color: var(--muted); }
.archive-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 2px; color: var(--muted); font-size: 10px; }
.archive-foot a { color: #336c64; font-weight: 700; }

.analysis-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 38px; max-width: 1380px; margin: 0 auto; padding: 45px clamp(20px, 6vw, 88px) 65px; }
.analysis-controls { display: flex; flex-direction: column; gap: 15px; }
.analysis-controls select { height: 43px; }
.analysis-warning { display: flex; gap: 10px; margin-top: 10px; padding: 13px; background: #e7e1d5; }
.analysis-warning span { color: var(--coral); }
.analysis-warning p { margin: 0; color: #586964; font-family: var(--serif); font-size: 13px; line-height: 1.5; }
.analysis-main { min-width: 0; }
.chart-panel { padding: 22px 24px 16px; border: 1px solid var(--line); background: var(--sea); color: var(--paper-bright); }
.insight-card { display: flex; gap: 16px; margin-top: 15px; padding: 20px; border: 1px solid #e1d9ca; background: #fffaf0; }
.insight-symbol { display: grid; flex: 0 0 36px; width: 36px; height: 36px; place-items: center; border: 1px solid #d8c68c; border-radius: 50%; color: #987d3f; }
.insight-card .eyebrow { color: #8c8166; }
.insight-card h3 { margin: 5px 0; font-family: var(--serif); font-size: 22px; font-weight: 500; }
.insight-card p { margin: 0 0 6px; color: #5c6a65; font-size: 12px; }
.insight-card .insight-disclaimer { color: #8a5540; font-size: 10px; font-weight: 600; }
.method-teaser { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; padding: 35px clamp(20px, 8vw, 120px) 45px; background: #e9e3d7; }
.method-teaser .eyebrow { color: #75867e; }
.method-teaser h2 { margin: 5px 0; font-family: var(--serif); font-size: 24px; font-weight: 500; }
.method-teaser p { max-width: 650px; margin: 0; color: #5f6d68; font-size: 12px; }

.prose-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(220px, .8fr); gap: 60px; max-width: 1240px; margin: 0 auto; padding: 45px clamp(20px, 7vw, 95px) 80px; }
.prose-main { max-width: 760px; }
.prose-main h2 { margin: 0 0 9px; font-family: var(--serif); font-size: 24px; font-weight: 500; }
.prose-main p { margin: 0 0 29px; color: #4f625e; font-size: 13px; line-height: 1.85; }
.prose-aside { align-self: start; padding: 22px; border-top: 3px solid var(--coral); background: #eae4d8; }
.prose-aside .eyebrow { color: #72857b; }
.prose-aside h3 { margin: 8px 0 6px; font-family: var(--serif); font-size: 21px; font-weight: 500; }
.prose-aside p { margin: 0 0 10px; color: #596a64; font-size: 12px; line-height: 1.7; }
.prose-aside a { color: #28605e; font-size: 11px; font-weight: 700; }
.prose-aside hr { margin: 21px 0; border: 0; border-top: 1px solid #d1c9bb; }

.site-footer { display: grid; grid-template-columns: 1fr 1.7fr; align-items: center; column-gap: 48px; row-gap: 19px; padding: 34px clamp(20px, 5vw, 76px) 20px; background: var(--sea-deep); color: #e9eee2; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-mark { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid rgba(232, 219, 169, .6); color: var(--lime); font-family: var(--serif); font-size: 18px; }
.footer-brand div { display: flex; flex-direction: column; }
.footer-brand strong { font-size: 16px; letter-spacing: -.3px; }
.footer-brand small { margin-top: 3px; color: #aabbaf; font-size: 9px; letter-spacing: .4px; }
.footer-disclaimer { max-width: 680px; margin: 0; color: #bdcbc0; font-size: 10px; line-height: 1.75; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 21px; grid-column: 2; }
.site-footer nav a { color: #cbd6c9; font-size: 10px; }
.site-footer nav a:hover { color: var(--lime); }
.footer-bottom { grid-column: 1 / -1; padding-top: 14px; border-top: 1px solid rgba(222, 235, 220, .16); color: #99b0a2; font-size: 9px; }

@media (max-width: 1100px) {
  .site-header { gap: 18px; }
  .brand-lockup { min-width: auto; }
  .header-note { display: none; }
  .dashboard-layout { grid-template-columns: 205px minmax(0, 1fr); }
  .game-detail-layout { grid-template-columns: 185px minmax(0, 1fr); gap: 30px; }
  .analysis-preview-copy { flex-basis: 170px; }
}
@media (max-width: 800px) {
  .site-header { height: 72px; padding-inline: 20px; }
  .primary-nav { gap: 16px; }
  .primary-nav a { font-size: 11px; }
  .dashboard-layout, .game-detail-layout { grid-template-columns: 1fr; gap: 28px; padding-top: 38px; }
  .game-rail { padding: 0; }
  .game-rail .rail-heading { display: flex; align-items: baseline; gap: 10px; }
  .game-rail .rail-heading h2 { margin: 0; font-size: 22px; }
  .game-rail .rail-heading p { display: none; }
  .game-rail .rail-heading .eyebrow { display: none; }
  .game-list { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 9px; border: 0; }
  .game-list li { flex: 0 0 auto; border: 0; }
  .game-link { min-height: 39px; gap: 7px; padding: 6px 10px; border: 1px solid var(--line); background: #fbf8f1; }
  .game-link:hover, .game-link.is-selected { padding-left: 10px; background: #e9e3d7; }
  .game-index { display: none; }
  .game-link-name { font-size: 10px; white-space: nowrap; }
  .game-link-arrow { display: none; }
  .rail-footnote { display: none; }
  .game-detail-layout > .game-rail { max-width: none; }
  .analysis-layout { grid-template-columns: 1fr; gap: 20px; }
  .analysis-controls { display: grid; grid-template-columns: 1fr 1fr; }
  .analysis-warning { grid-column: 1 / -1; }
  .prose-layout { gap: 25px; }
}
@media (max-width: 620px) {
  .site-header { padding-inline: 16px; }
  .brand-lockup img { width: 38px; height: 38px; }
  .brand-text strong { font-size: 18px; }
  .primary-nav { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; margin-left: auto; padding: 8px 12px; border: 1px solid var(--line); background: transparent; color: var(--ink); font-size: 11px; font-weight: 700; }
  .mobile-nav:not([hidden]) { display: flex; position: sticky; top: 72px; z-index: 28; gap: 0; padding: 7px 16px; border-bottom: 1px solid var(--line); background: var(--paper-bright); }
  .mobile-nav a { flex: 1; padding: 9px 5px; color: #536762; text-align: center; font-size: 10px; font-weight: 700; }
  .snapshot-banner { flex-wrap: wrap; gap: 7px; padding: 8px 15px; font-size: 10px; }
  .snapshot-banner > span:nth-child(2) { flex: 1; }
  .snapshot-banner a { width: 100%; margin: 0 0 0 27px; }
  .hero-intro { min-height: 340px; padding: 47px 20px 40px; }
  .hero-copy { width: 100%; }
  .hero-copy h1 { font-size: 57px; }
  .hero-copy > p { max-width: 340px; font-size: 13px; }
  .hero-side-note { display: none; }
  .orbit-one { right: -73%; }
  .orbit-two { right: calc(-73% + 53px); }
  .orbit-three { right: calc(-73% + 108px); }
  .dashboard-layout { padding: 31px 16px 43px; }
  .section-heading { align-items: flex-start; }
  .section-heading h2 { font-size: 27px; }
  .section-heading p { max-width: 260px; font-size: 10px; }
  .section-heading > .text-link { margin-top: 22px; font-size: 10px; }
  .toolbar { gap: 8px; }
  .search-box { min-height: 42px; gap: 7px; padding: 0 8px; }
  .search-box input { font-size: 10px; }
  .search-box kbd { display: none; }
  .toolbar-count { font-size: 9px; }
  .results-grid, .detail-results { grid-template-columns: 1fr; }
  .feed-setup-card { align-items: flex-start; flex-wrap: wrap; gap: 10px; padding: 13px; }
  .feed-pulse { margin-top: 3px; }
  .feed-setup-card > div:nth-child(2) { flex: 1; }
  .feed-setup-card > a { margin-left: 21px; }
  .lower-layout { grid-template-columns: 1fr; gap: 20px; padding: 38px 16px; }
  .lower-heading h2 { max-width: none; font-size: 28px; }
  .lower-heading p { max-width: 440px; }
  .analysis-preview { align-items: flex-start; flex-direction: column; gap: 8px; padding: 20px; }
  .analysis-preview-copy { flex-basis: auto; }
  .analysis-preview h3 br { display: none; }
  .frequency-chart { min-height: 180px; }
  .source-strip { align-items: flex-start; flex-direction: column; padding: 31px 16px; }
  .source-strip h2 { font-size: 23px; }
  .page-heading { padding: 39px 17px 33px; }
  .page-heading h1 { font-size: 44px; }
  .page-heading > p { font-size: 12px; }
  .game-detail-layout { padding: 27px 16px 45px; }
  .detail-summary { align-items: flex-start; flex-direction: column; gap: 10px; padding: 14px; }
  .detail-summary h2 { font-size: 13px; }
  .archive-panel { margin: 20px auto 50px; padding: 0 12px; }
  .archive-controls { grid-template-columns: 1fr 1fr; gap: 10px; padding: 11px; }
  .archive-controls label:nth-child(2) { grid-column: 1 / -1; grid-row: 1; }
  .archive-foot { align-items: flex-start; flex-direction: column; gap: 4px; }
  .analysis-layout { padding: 30px 14px 45px; }
  .analysis-controls { grid-template-columns: 1fr; }
  .analysis-warning { grid-column: auto; }
  .chart-panel { padding: 16px 13px 12px; }
  .chart-panel-heading h2, .chart-panel-heading h3 { font-size: 19px; }
  .chart-window { font-size: 9px; }
  .method-teaser { align-items: flex-start; flex-direction: column; padding: 29px 16px 34px; }
  .prose-layout { grid-template-columns: 1fr; padding: 30px 17px 55px; }
  .prose-main h2 { font-size: 21px; }
  .site-footer { grid-template-columns: 1fr; row-gap: 14px; padding: 28px 17px 18px; }
  .site-footer nav { grid-column: 1; gap: 14px; }
  .footer-bottom { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}


.metric-ribbon { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: 14px; border: 1px solid var(--line); background: var(--line); }
.metric-cell { min-width: 0; padding: 15px 14px 12px; background: var(--paper-bright); }
.metric-cell > span { display: block; margin-bottom: 7px; color: #75857d; font-size: 8px; letter-spacing: 1px; font-weight: 700; }
.metric-cell strong { display: block; overflow-wrap: anywhere; color: var(--ink); font-family: var(--serif); font-size: 17px; line-height: 1.25; font-weight: 500; }
.metric-cell small { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; line-height: 1.4; }
.metric-limit { grid-column: 1 / -1; margin: 0; padding: 9px 13px; background: #ece8dd; color: #687770; font-size: 9px; }
@media (max-width: 800px) { .metric-ribbon { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 430px) { .metric-cell { padding: 12px 10px; } .metric-cell strong { font-size: 15px; } }

.recent-games { display: flex; align-items: center; gap: 13px; margin: -2px 0 13px; }
.recent-games > .eyebrow { flex: 0 0 auto; color: #81918a; font-size: 8px; }
.recent-games > div { display: flex; flex-wrap: wrap; gap: 7px; }
.recent-games a { padding: 5px 9px; border: 1px solid var(--line); background: #fbf8f1; color: var(--game-accent); font-size: 10px; font-weight: 700; }
.recent-games a:hover { background: #e9e3d7; }
.search-empty { margin: 0; padding: 24px; border: 1px dashed #cfc7b8; color: var(--muted); font-family: var(--serif); font-size: 16px; text-align: center; }
@media (max-width: 620px) { .recent-games { align-items: flex-start; flex-direction: column; gap: 6px; } }

.draw-detail-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(230px, .7fr); align-items: start; gap: 28px; max-width: 1050px; margin: 0 auto; padding: 42px 24px 75px; }
.draw-detail-card .draw-card { min-height: 185px; padding: 22px; }
.draw-detail-card .result-token { min-width: 44px; height: 44px; font-size: 15px; }
.draw-detail-card .token-symbol { min-width: 39px; height: 32px; font-size: 10px; }
@media (max-width: 700px) { .draw-detail-layout { grid-template-columns: 1fr; padding: 28px 16px 52px; } }

.archive-pagination { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 13px 10px; border: 1px solid var(--line); border-top: 0; background: #f4f0e7; }
.archive-pagination button { min-height: 34px; padding: 0 12px; border: 1px solid #cec7b8; background: var(--paper-bright); color: #315f59; font-size: 10px; font-weight: 700; }
.archive-pagination button:hover:not(:disabled) { background: var(--sea); color: var(--paper-bright); }
.archive-pagination button:disabled { cursor: default; opacity: .45; }
.archive-pagination span { color: #687873; font-size: 10px; font-variant-numeric: tabular-nums; }
@media (max-width: 430px) { .archive-pagination { gap: 8px; } .archive-pagination button { padding: 0 8px; } .archive-pagination span { font-size: 9px; } }


.favorite-collection { margin-top: 15px; padding: 15px 16px 16px; border: 1px solid var(--line); background: #efeade; }
.favorite-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 10px; }
.favorite-heading .eyebrow { color: #75877d; font-size: 8px; }
.favorite-heading h3 { margin: 3px 0 0; font-family: var(--serif); font-size: 19px; font-weight: 500; }
.favorite-heading > span { color: #718078; font-size: 9px; }
.favorite-list { display: flex; flex-wrap: wrap; gap: 8px; }
.favorite-list > p { margin: 0; color: #687671; font-size: 10px; }
.favorite-chip { display: inline-flex; align-items: center; border: 1px solid #d4cbbb; background: var(--paper-bright); }
.favorite-chip a { padding: 7px 9px; color: var(--ink-soft); font-size: 10px; font-weight: 700; }
.favorite-chip a span { margin-left: 5px; color: #9b6f4b; }
.favorite-chip button { width: 29px; align-self: stretch; border: 0; border-left: 1px solid #e6dfd2; background: transparent; color: #687671; font-size: 16px; }
.favorite-chip button:hover { background: #f6e9e1; color: #a4543a; }

.analytics-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin-top: 14px; }
.analytics-grid .mini-chart-panel { min-width: 0; padding: 17px 17px 12px; }
.analytics-grid .chart-panel-heading { min-height: 49px; align-items: flex-start; margin-bottom: 3px; }
.analytics-grid .chart-panel-heading .eyebrow { font-size: 8px; letter-spacing: 1.2px; }
.analytics-grid .chart-panel-heading h2 { font-size: 19px; }
.analysis-chart { display: block; width: 100%; height: auto; min-height: 145px; overflow: visible; }
.analysis-axis-label { fill: #c4d0c5; font-family: var(--sans); font-size: 10px; }
.analysis-axis-value { fill: #e7e2d2; font-weight: 700; }
.analysis-bar { opacity: .95; transition: opacity .18s ease; }
.analysis-bar:hover { opacity: .72; }
.analysis-bar--hot { fill: #d67455; }
.analysis-bar--cold { fill: #8fa4a0; }
.analysis-bar--neutral { fill: #cad99e; }
.analysis-bar--gap { fill: #d3c28c; }
.analysis-bar--pair { fill: #8eb3a0; }
.analysis-line { fill: none; stroke: #cad99e; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.analysis-line--repeat { stroke: #d67455; }
.analysis-point { fill: #f5f1e8; stroke: #12363b; stroke-width: 2; }
.analysis-legend-line { stroke-width: 2.5; stroke-linecap: round; }
.trend-panel { grid-column: 1 / -1; }
.analytics-grid .chart-footnote { min-height: 30px; padding-top: 2px; line-height: 1.45; }
@media (max-width: 800px) {
  .analytics-grid { gap: 10px; }
  .analytics-grid .mini-chart-panel { padding: 15px 13px 11px; }
}
@media (max-width: 620px) {
  .favorite-collection { padding: 13px; }
  .favorite-heading { align-items: flex-start; flex-direction: column; gap: 2px; }
  .analytics-grid { grid-template-columns: 1fr; }
  .trend-panel { grid-column: auto; }
  .analysis-chart { min-height: 155px; }
}


/* Results-first, app-ready layer */
:root {
  --ink: #142e33;
  --ink-soft: #315156;
  --sea: #153a40;
  --sea-deep: #102e33;
  --paper: #f5f5f2;
  --paper-bright: #ffffff;
  --sand: #e8ece9;
  --line: #d9e0dc;
  --muted: #667875;
  --coral: #dc684f;
  --lime: #dbe99d;
}
body { background: #f5f6f3; color: var(--ink); }
.site-header { height: 66px; gap: 20px; padding-inline: clamp(16px, 4vw, 54px); background: rgba(255,255,255,.95); }
.brand-lockup { min-width: 0; gap: 9px; }
.brand-lockup img { width: 38px; height: 38px; }
.brand-text strong { font-size: 18px; }
.brand-text small { margin-top: 3px; font-size: 8px; letter-spacing: 1.2px; }
.primary-nav { gap: 22px; }
.primary-nav a { font-size: 12px; }
.primary-nav a[aria-current="page"]::after { bottom: 13px; height: 3px; border-radius: 3px; background: var(--coral); }
.snapshot-banner { min-height: 36px; gap: 8px; padding: 6px clamp(16px, 4vw, 54px); background: #edf1ed; color: #506561; font-size: 10px; }
.snapshot-banner strong { font-size: 10px; }
.snapshot-copy { color: #768580; }
.snapshot-banner a { color: #315f59; font-size: 10px; }
.status-dot { width: 7px; height: 7px; background: #d58642; box-shadow: 0 0 0 3px rgba(213,134,66,.12); }
.results-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1420px; margin: 0 auto; padding: 27px clamp(16px, 4vw, 54px) 16px; }
.results-heading .eyebrow { color: #71837d; font-size: 9px; letter-spacing: 1.3px; }
.results-heading h1 { margin: 3px 0 0; font-family: var(--sans); font-size: clamp(25px, 4vw, 34px); line-height: 1.1; font-weight: 750; letter-spacing: -1.1px; }
.verify-link { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 9px 12px; border: 1px solid #cbd8d1; border-radius: 8px; color: #2d625a; background: #fff; font-size: 10px; font-weight: 750; white-space: nowrap; }
.verify-link:hover { background: #eaf2ec; }
.dashboard-layout { display: block; max-width: 1420px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 54px) 36px; }
.board-main { min-width: 0; }
.game-filter { display: flex; gap: 7px; overflow-x: auto; margin: 0 0 12px; padding: 3px 1px 7px; scrollbar-width: thin; }
.game-filter button { flex: 0 0 auto; min-height: 32px; padding: 0 11px; border: 1px solid #d5dfd9; border-radius: 999px; background: #fff; color: #526560; font-size: 10px; font-weight: 700; white-space: nowrap; }
.game-filter button:hover { border-color: var(--game-accent, #8caaa0); color: var(--ink); }
.game-filter button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.game-filter button[aria-pressed="true"][data-filter-game="all"] { background: #153a40; }
.toolbar { gap: 10px; margin-bottom: 12px; }
.search-box { min-height: 39px; max-width: 360px; gap: 8px; border-color: #dce3de; border-radius: 8px; background: #fff; }
.search-box > span { font-size: 18px; }
.search-box input { font-size: 11px; }
.toolbar-count { font-size: 10px; }
.results-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.draw-card { padding: 12px 13px 10px; border: 1px solid #dde3df; border-top: 3px solid var(--game-accent); border-radius: 12px; background: #fff; box-shadow: 0 3px 12px rgba(20,46,51,.035); }
.draw-card:hover { transform: translateY(-1px); box-shadow: 0 9px 24px rgba(20,46,51,.09); }
.draw-card-top { align-items: center; gap: 8px; }
.game-kicker { color: var(--game-accent); font-size: 11px; font-weight: 800; letter-spacing: .05px; }
.draw-date { margin-top: 2px; font-size: 9px; }
.favorite-toggle { flex: 0 0 28px; width: 28px; height: 28px; margin: 0; border: 1px solid #e4e9e5; background: #fbfcfa; font-size: 18px; }
.result-tokens { gap: 6px; min-height: 52px; padding: 8px 0; }
.number-ball { display: inline-grid; width: 39px; height: 39px; flex: 0 0 39px; place-items: center; border: 1px solid rgba(0,0,0,.08); border-radius: 50%; background: radial-gradient(circle at 31% 24%, rgba(255,255,255,.64), transparent 30%), var(--ball-color); color: var(--ball-text, #fff); box-shadow: inset 0 -3px 5px rgba(0,0,0,.14), 0 2px 4px rgba(24,45,42,.12); font-size: 13px; font-weight: 850; font-variant-numeric: tabular-nums; line-height: 1; }
.ball-0 { --ball-color: #2778cb; }
.ball-1 { --ball-color: #edaa35; --ball-text: #243436; }
.ball-2 { --ball-color: #35a67b; }
.ball-3 { --ball-color: #d95f53; }
.ball-4 { --ball-color: #8867b4; }
.result-symbol { display: inline-grid; min-width: 34px; height: 28px; place-items: center; padding: 0 7px; border: 1px solid #dbe4dc; border-radius: 8px; background: #eef4ed; color: #426452; font-size: 9px; font-weight: 800; letter-spacing: .2px; }
.draw-card-bottom { padding-top: 8px; border-color: #edf0ed; color: #76847f; font-size: 9px; }
.draw-card-bottom strong { color: #374f50; }
.draw-card-bottom a { color: #326b60; font-size: 9px; }
.result-extras { gap: 7px; padding-top: 7px; }
.result-extra { display: inline-flex; gap: 4px; padding: 4px 7px; border-radius: 6px; background: #f0f4f1; color: #596b65; font-size: 8px; }
.result-extra b { color: #39554e; }
.search-empty { margin: 10px 0; padding: 18px; border: 1px dashed #c9d4cd; border-radius: 10px; background: #fff; color: #667875; font-family: var(--sans); font-size: 12px; }
.saved-accordion { margin-top: 12px; border: 1px solid #dde4df; border-radius: 10px; background: #fff; }
.saved-accordion summary { padding: 10px 13px; color: #35514d; font-size: 11px; font-weight: 750; cursor: pointer; }
.saved-accordion summary span { margin-left: 6px; color: #85918b; font-size: 9px; font-weight: 500; }
.saved-accordion .favorite-list { padding: 0 13px 12px; }
.quick-stats { margin-top: 20px; }
.quick-stats-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.quick-stats-title .eyebrow { color: #778983; font-size: 8px; }
.quick-stats-title a { color: #326b60; font-size: 10px; font-weight: 700; }
.quick-stats-card { display: grid; grid-template-columns: minmax(0, 1fr) 200px; align-items: center; gap: 15px; padding: 12px 16px; border: 1px solid #dce4df; border-radius: 10px; background: #153a40; }
.quick-stats-card > span { color: #d0dfd5; font-size: 9px; line-height: 1.4; }
.quick-stats .frequency-chart { min-height: 130px; max-height: 160px; }
.quick-stats .chart-gridline { stroke: rgba(183,199,182,.18); }
.quick-stats .chart-axis-label { fill: #d0ddd3; }
.quick-stats .chart-bar { fill: #d9e99e; }
.quick-stats .chart-bar:nth-of-type(3n) { fill: #f09a63; }
.small-print { margin-top: 12px; color: #71807b; font-size: 9px; }
.small-print summary { cursor: pointer; font-weight: 700; }
.small-print p { max-width: 750px; margin: 7px 0 0; line-height: 1.6; }
.page-heading { padding: 28px clamp(16px, 4vw, 54px) 18px; background: #eef1ec; }
.page-heading .eyebrow { color: #74867e; font-size: 8px; }
.page-heading h1 { margin: 3px 0 4px; font-family: var(--sans); font-size: clamp(26px, 4vw, 35px); font-weight: 800; letter-spacing: -1px; }
.page-heading > p { font-size: 11px; line-height: 1.5; }
.page-heading-game { border-left: 5px solid var(--game-accent); }
.back-link { margin-bottom: 6px; font-size: 10px; }
.game-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.game-title-row h1 { margin: 2px 0; }
.game-schedule { margin: 4px 0 2px !important; color: #526863 !important; font-size: 11px !important; font-family: var(--sans) !important; font-weight: 650; }
.page-heading small { color: #7c8a84; font-size: 9px; }
.game-detail-layout { display: block; max-width: 1420px; margin: 0 auto; padding: 16px clamp(16px, 4vw, 54px) 35px; }
.game-switcher { display: flex; gap: 7px; overflow-x: auto; margin-bottom: 13px; padding: 2px 0 7px; }
.game-switcher a { flex: 0 0 auto; padding: 7px 10px; border: 1px solid #d7e0da; border-radius: 999px; background: #fff; color: var(--game-accent); font-size: 9px; font-weight: 750; white-space: nowrap; }
.game-switcher a.is-selected { border-color: var(--game-accent); background: var(--game-accent); color: #fff; }
.detail-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.detail-heading .eyebrow { color: #73847e; font-size: 8px; }
.detail-results { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.game-chart-panel { padding: 13px 15px; border: 0; border-radius: 10px; background: #153a40; }
.game-chart-panel .chart-panel-heading { margin-bottom: 2px; }
.game-chart-panel .chart-panel-heading h2 { font-family: var(--sans); font-size: 14px; font-weight: 750; }
.game-chart-panel .frequency-chart { max-height: 170px; }
.game-detail-main > .metric-ribbon { margin-top: 9px; }
.draw-detail-layout { grid-template-columns: minmax(0, 1fr) 220px; gap: 14px; max-width: 1050px; padding: 18px 24px 38px; }
.draw-detail-card .draw-card { min-height: 0; padding: 16px; }
.verify-aside { padding: 15px; border: 1px solid #dde4df; border-top: 3px solid var(--coral); border-radius: 10px; background: #fff; }
.verify-aside h2 { margin: 5px 0 10px; font-size: 15px; }
.archive-panel { max-width: 1240px; margin: 15px auto 42px; padding: 0 clamp(14px, 4vw, 54px); }
.archive-controls { grid-template-columns: 1fr 1.4fr .8fr .8fr; gap: 8px; padding: 11px; border-radius: 10px; background: #fff; }
.archive-controls label { font-size: 8px; }
.archive-controls input, .archive-controls select, .analysis-controls select { height: 35px; border-radius: 7px; font-size: 10px; }
.archive-list { margin-top: 10px; border: 1px solid #dce3df; border-radius: 10px; overflow: hidden; background: #fff; }
.archive-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 9px 12px; border-bottom: 1px solid #edf0ed; }
.archive-row:last-child { border-bottom: 0; }
.archive-row-meta { display: grid; min-width: 190px; gap: 2px; }
.archive-row-meta > span { color: #72817b; font-size: 8px; }
.archive-row .result-tokens { flex: 1; min-height: 0; padding: 0; }
.archive-row .number-ball { width: 29px; height: 29px; flex-basis: 29px; font-size: 10px; }
.archive-row .result-symbol { min-width: 27px; height: 22px; font-size: 8px; }
.table-source { flex: 0 0 auto; color: #356b60; font-size: 9px; }
.archive-foot { font-size: 9px; }
.analysis-layout { display: block; max-width: 1380px; margin: 0 auto; padding: 14px clamp(14px, 4vw, 54px) 38px; }
.analysis-controls { display: grid; grid-template-columns: minmax(160px, .7fr) minmax(150px, .5fr); gap: 9px; margin-bottom: 11px; }
.analysis-controls label { gap: 3px; font-size: 8px; }
.analysis-main { min-width: 0; }
.chart-panel { padding: 14px 16px 10px; border: 1px solid #dce4df; border-radius: 10px; background: #153a40; }
.chart-panel-heading { min-height: 0; align-items: center; margin-bottom: 3px; }
.chart-panel-heading .eyebrow { font-size: 8px; letter-spacing: 1.1px; }
.chart-panel-heading h2, .chart-panel-heading h3 { margin-top: 3px; font-family: var(--sans); font-size: 15px; font-weight: 750; }
.primary-chart .frequency-chart { max-height: 205px; }
.chart-footnote { margin: 4px 0 0; color: #c7d5cc; font-size: 8px; }
.analytics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 9px; }
.analytics-grid .mini-chart-panel { padding: 11px 12px 8px; }
.analytics-grid .analysis-chart { width: 100%; min-height: 115px; max-height: 140px; }
.insight-card { margin-top: 9px; padding: 12px 14px; border-radius: 10px; }
.insight-card h2 { margin: 3px 0 4px; font-size: 14px; }
.insight-card p { font-size: 9px; }
.insight-card small { color: #8a5540; font-size: 8px; font-weight: 700; }
.metric-ribbon { border-radius: 9px; overflow: hidden; }
.metric-cell { padding: 10px; }
.metric-cell > span { font-size: 7px; }
.metric-cell strong { font-family: var(--sans); font-size: 14px; font-weight: 750; }
.metric-cell small, .metric-limit { font-size: 8px; }
.site-footer { grid-template-columns: 1fr auto; gap: 7px 20px; padding: 18px clamp(16px, 4vw, 54px); background: #153a40; }
.footer-brand { color: #fff; font-size: 13px; font-weight: 800; }
.footer-brand span { color: #a9c1b4; font-size: 9px; font-weight: 500; }
.footer-disclaimer { grid-column: 1; color: #c4d2ca; font-size: 8px; }
.site-footer nav { grid-column: 2; grid-row: 1 / 3; gap: 11px; }
.site-footer nav a { color: #d3dfd7; font-size: 8px; }
.app-tabbar { display: none; }

@media (max-width: 1050px) {
  .results-grid, .detail-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .site-header { position: sticky; height: 58px; padding-inline: 14px; }
  .brand-lockup img { width: 34px; height: 34px; }
  .brand-text strong { font-size: 16px; }
  .brand-text small { font-size: 7px; }
  .primary-nav { display: none; }
  .snapshot-banner { min-height: 31px; flex-wrap: nowrap; gap: 7px; padding: 5px 14px; font-size: 9px; }
  .snapshot-banner strong { font-size: 9px; }
  .snapshot-banner a { width: auto; margin: 0 0 0 auto; font-size: 9px; }
  .results-heading { padding: 20px 14px 11px; }
  .results-heading .eyebrow { font-size: 7px; letter-spacing: .9px; }
  .results-heading h1 { font-size: 27px; }
  .verify-link { padding: 7px 9px; font-size: 9px; }
  .dashboard-layout { padding: 0 12px 22px; }
  .game-filter { gap: 6px; margin-bottom: 8px; }
  .game-filter button { min-height: 30px; padding-inline: 9px; font-size: 9px; }
  .toolbar { margin-bottom: 9px; }
  .search-box { min-height: 37px; max-width: none; }
  .search-box input { font-size: 11px; }
  .toolbar-count { font-size: 9px; }
  .results-grid, .detail-results { grid-template-columns: 1fr; gap: 8px; }
  .draw-card { padding: 10px 12px 9px; }
  .result-tokens { min-height: 47px; gap: 7px; }
  .number-ball { width: 36px; height: 36px; flex-basis: 36px; font-size: 12px; }
  .quick-stats { margin-top: 15px; }
  .quick-stats-card { grid-template-columns: 1fr; gap: 4px; padding: 10px 12px; }
  .quick-stats .frequency-chart { min-height: 112px; max-height: 135px; }
  .quick-stats-card > span { font-size: 8px; }
  .page-heading { padding: 20px 14px 14px; }
  .page-heading h1 { font-size: 27px; }
  .game-detail-layout { padding: 10px 12px 25px; }
  .game-switcher { margin-bottom: 8px; }
  .detail-results { margin-bottom: 10px; }
  .draw-detail-layout { grid-template-columns: 1fr; padding: 12px; }
  .archive-panel { margin: 9px auto 23px; padding: 0 12px; }
  .archive-controls { grid-template-columns: 1fr 1fr; gap: 7px; }
  .archive-row { align-items: flex-start; flex-direction: column; gap: 6px; padding: 9px; }
  .archive-row-meta { width: 100%; grid-template-columns: 1fr auto; align-items: center; min-width: 0; }
  .archive-row-meta > span { grid-row: 2; }
  .archive-row .result-tokens { width: 100%; flex-wrap: wrap; }
  .analysis-layout { padding: 10px 12px 25px; }
  .analysis-controls { grid-template-columns: 1fr 1fr; }
  .analytics-grid { grid-template-columns: 1fr; gap: 8px; }
  .analytics-grid .analysis-chart { min-height: 100px; max-height: 125px; }
  .metric-ribbon { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer { grid-template-columns: 1fr; padding: 13px 14px calc(12px + env(safe-area-inset-bottom)); }
  .site-footer nav { grid-column: 1; grid-row: auto; }
  .app-tabbar { position: fixed; z-index: 50; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(3, 1fr); padding: 7px 12px calc(7px + env(safe-area-inset-bottom)); border-top: 1px solid #dce4df; background: rgba(255,255,255,.97); box-shadow: 0 -4px 16px rgba(20,46,51,.08); backdrop-filter: blur(14px); }
  .app-tabbar a { display: grid; justify-items: center; gap: 3px; color: #7b8983; font-size: 8px; font-weight: 700; }
  .app-tabbar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .app-tabbar a[aria-current="page"] { color: #c45b43; }
}
@media (max-width: 390px) {
  .snapshot-copy { display: none; }
  .toolbar-count { display: none; }
  .results-heading .verify-link { padding: 6px 7px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}


/* Game-specific lottery balls and secure manual-entry screen. */
.draw-card-top { align-items: flex-start; }
.draw-card-actions { display: inline-flex; align-items: center; gap: 7px; }
.favorite-toggle { display: grid; place-items: center; width: 27px; height: 27px; padding: 0; border: 1px solid #d5dfda; border-radius: 50%; background: #fff; color: #7f8983; font-size: 16px; line-height: 1; cursor: pointer; }
.favorite-toggle[aria-pressed="true"] { border-color: #e9ca65; background: #fff5c9; color: #a17b1f; }
.ball-unit { display: inline-flex; flex: 0 0 auto; flex-direction: column; align-items: center; gap: 3px; min-width: 38px; perspective: 480px; }
.number-ball { position: relative; display: inline-grid; flex: 0 0 42px; place-items: center; width: 42px; height: 42px; overflow: hidden; border: 1px solid rgba(16,39,43,.14); border-radius: 50%; isolation: isolate; background: radial-gradient(circle at 31% 22%, rgba(255,255,255,.92) 0 5%, rgba(255,255,255,.38) 16%, transparent 34%), radial-gradient(circle at 36% 31%, var(--ball-highlight, #fff), var(--ball-color, #58a3be) 60%, var(--ball-shadow, #39778c) 100%); color: var(--ball-text, #fff); box-shadow: inset 0 -4px 8px rgba(0,0,0,.18), inset 0 2px 3px rgba(255,255,255,.38), 0 3px 6px rgba(16,39,43,.17); font-size: 13px; font-weight: 850; font-variant-numeric: tabular-nums; line-height: 1; transform-style: preserve-3d; animation: ball-turn 7s ease-in-out infinite; }
.number-ball::after { position: absolute; z-index: -1; top: 7%; left: 13%; width: 70%; height: 54%; border-radius: 50%; background: linear-gradient(115deg, rgba(255,255,255,.45), rgba(255,255,255,0) 68%); content: ""; opacity: .7; animation: ball-gloss 7s ease-in-out infinite; }
.ball-unit:nth-child(2n) .number-ball, .ball-unit:nth-child(2n) .number-ball::after { animation-delay: -1.7s; }
.ball-unit:nth-child(3n) .number-ball, .ball-unit:nth-child(3n) .number-ball::after { animation-delay: -3.2s; }
.ball-caption { max-width: 72px; color: #64756f; font-size: 8px; font-weight: 750; line-height: 1.1; text-align: center; }
.ball-play-whe { --ball-color: #f2cb4e; --ball-highlight: #fff5c7; --ball-shadow: #bd8c24; --ball-text: #342910; }
.ball-red { --ball-color: #d94e42; --ball-highlight: #ffb0a3; --ball-shadow: #9d302b; --ball-text: #fff; }
.ball-white { --ball-color: #fff; --ball-highlight: #fff; --ball-shadow: #d6dfdb; --ball-text: #243c3d; border-color: #c7d2cd; }
.ball-teal { --ball-color: #428f89; --ball-highlight: #a7ddd2; --ball-shadow: #276b67; }
.ball-yellow { --ball-color: #efc546; --ball-highlight: #fff3a8; --ball-shadow: #b48727; --ball-text: #332b14; }
.ball-blue { --ball-color: #5793b2; --ball-highlight: #b7e3f0; --ball-shadow: #356b91; }
.ball-green { --ball-color: #65a176; --ball-highlight: #bbe1bd; --ball-shadow: #3f704e; }
.ball-purple { --ball-color: #8b75a9; --ball-highlight: #d4c2e5; --ball-shadow: #62507e; }
.ball-orange { --ball-color: #de874b; --ball-highlight: #ffd1a2; --ball-shadow: #a95931; }
@keyframes ball-turn { 0%, 100% { transform: rotateY(-11deg) rotateX(4deg); } 50% { transform: rotateY(11deg) rotateX(-4deg); } }
@keyframes ball-gloss { 0%, 20%, 100% { transform: translateX(-9%) rotate(-10deg); opacity: .45; } 58% { transform: translateX(22%) rotate(-10deg); opacity: .85; } }
.result-extras { display: flex; flex-wrap: wrap; gap: 5px 11px; margin-top: 5px; }
.result-extra { color: #667771; font-size: 9px; }
.result-extra b { color: #324d4d; font-weight: 750; }
.archive-result-link { display: flex; color: inherit; text-decoration: none; }
.archive-row .ball-caption { max-width: 64px; font-size: 7px; }
.admin-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(220px, .75fr); gap: 18px; max-width: 1050px; margin: 0 auto; padding: 12px clamp(14px, 4vw, 44px) 36px; }
.admin-form, .admin-help { padding: 18px; border: 1px solid #dce4df; border-radius: 12px; background: #fff; box-shadow: 0 10px 26px rgba(20,46,51,.05); }
.admin-form { display: grid; gap: 12px; }
.admin-form label { display: grid; gap: 5px; color: #29464a; font-size: 11px; font-weight: 750; }
.admin-form input, .admin-form select { width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid #cfdad4; border-radius: 7px; background: #fbfcfa; color: #172e32; font: inherit; font-size: 12px; }
.admin-form small { color: #72827b; font-size: 9px; font-weight: 500; line-height: 1.45; }
.admin-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.admin-wide { grid-column: 1 / -1; }
.admin-save { min-height: 42px; padding: 9px 14px; border: 0; border-radius: 7px; background: #cf7351; color: #fff; font-weight: 800; cursor: pointer; }
.admin-status { min-height: 18px; margin: 0; color: #60736b; font-size: 11px; }
.admin-status.is-error { color: #a7332c; }
.admin-status.is-success { color: #266a50; }
.admin-status a { margin-left: 5px; color: inherit; font-weight: 800; }
.admin-help { align-self: start; background: #eef3ef; }
.admin-help h2 { margin: 6px 0; color: #19363b; font-size: 17px; }
.admin-help p, .admin-help a { color: #5d716a; font-size: 11px; line-height: 1.55; }
.admin-help-note { margin-top: 18px; padding-top: 12px; border-top: 1px solid #d4dfd9; }
@media (max-width: 700px) {
  .number-ball { flex-basis: 36px; width: 36px; height: 36px; font-size: 12px; }
  .ball-unit { min-width: 35px; }
  .ball-caption { max-width: 58px; font-size: 7px; }
  .favorite-toggle { width: 24px; height: 24px; font-size: 14px; }
  .admin-layout { grid-template-columns: 1fr; gap: 9px; padding: 10px 12px 25px; }
  .admin-form, .admin-help { padding: 13px; }
  .admin-fields { gap: 8px; }
  .admin-form input, .admin-form select { min-height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  .number-ball, .number-ball::after { animation: none !important; }
}

.number-ball::after { z-index: 0; }
.ball-number-label { position: relative; z-index: 1; }


/* WheWise refresh: clearer contrast, calmer surfaces, and sharper result focus. */
:root {
  --ink: #122238;
  --ink-soft: #334763;
  --sea: #102b4e;
  --sea-deep: #091d36;
  --paper: #f4f7fb;
  --paper-bright: #ffffff;
  --sand: #e7edf5;
  --line: #d9e2ee;
  --muted: #6b7b91;
  --sage: #5f7898;
  --lime: #dcecff;
  --coral: #2f80ed;
  --shadow: 0 18px 50px rgba(22, 52, 88, .10);
}

html, body { background: var(--paper); }
body { color: var(--ink); }
.site-header { height: 76px; background: rgba(255,255,255,.94); border-bottom-color: #dfe7f1; }
.brand-lockup img { border-radius: 13px; box-shadow: 0 6px 18px rgba(16,43,78,.12); }
.brand-text strong { color: var(--sea); letter-spacing: -.8px; }
.brand-text small { color: #7b8ba0; }
.primary-nav { gap: 9px; }
.primary-nav a { height: auto; padding: 10px 14px; border-radius: 999px; color: #72829a; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--sea); background: #eef5ff; }
.primary-nav a[aria-current="page"]::after { display: none; }
.snapshot-banner { min-height: 40px; background: #102b4e; color: #d6e3f5; }
.snapshot-banner strong { color: #fff; }
.snapshot-copy { color: #afc4df; }
.snapshot-banner a { color: #b9d8ff; }
.snapshot-banner a:hover { color: #fff; }
.status-dot { background: #59c7a6; box-shadow: 0 0 0 4px rgba(89,199,166,.16); }
.results-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; max-width: 1500px; margin: 0 auto; padding: 40px clamp(20px,5vw,76px) 8px; }
.results-heading h1 { margin: 8px 0 0; color: var(--sea); font-size: clamp(34px, 5vw, 52px); letter-spacing: -1.8px; }
.eyebrow { color: #7186a0; letter-spacing: 1.6px; }
.verify-link { display: inline-flex; align-items: center; padding: 10px 14px; border: 1px solid #c9d9ec; border-radius: 999px; background: #fff; color: #2368b5; font-size: 11px; font-weight: 800; }
.verify-link:hover { border-color: #2f80ed; background: #eef6ff; color: #155ca6; }
.dashboard-layout { grid-template-columns: 1fr; max-width: 1500px; padding-top: 18px; }
.board-main { width: 100%; }
.game-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.game-filter button { min-height: 36px; padding: 0 14px; border: 1px solid #d2deec; border-radius: 999px; background: #fff; color: #657790; font-size: 11px; font-weight: 750; transition: .18s ease; }
.game-filter button:hover { border-color: var(--game-accent, #2f80ed); color: var(--game-accent, #2368b5); transform: translateY(-1px); }
.game-filter button[aria-pressed="true"] { border-color: var(--sea); background: var(--sea); color: #fff; }
.toolbar { margin-bottom: 18px; }
.search-box { min-height: 48px; border-color: #cfdae8; border-radius: 12px; box-shadow: 0 5px 18px rgba(31,65,104,.04); }
.search-box:focus-within { border-color: #6ca7e8; box-shadow: 0 0 0 4px rgba(47,128,237,.11); }
.toolbar-count { color: #71839b; font-weight: 700; }
.results-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.draw-card { padding: 18px 19px 15px; border: 1px solid #dce5f0; border-top: 4px solid var(--game-accent); border-radius: 14px; background: #fff; box-shadow: 0 7px 24px rgba(28,59,96,.06); }
.draw-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(28,59,96,.13); }
.draw-card-top { min-height: 39px; }
.game-kicker { font-size: 12px; letter-spacing: .2px; }
.draw-date { color: #7b8ba0; font-size: 10px; }
.draw-status { color: #27815f; letter-spacing: 1.1px; }
.favorite-toggle { border-color: #d8e2ef; color: #7c8da3; }
.favorite-toggle:hover, .favorite-toggle[aria-pressed="true"] { border-color: #a8c9ef; background: #eef6ff; }
.result-tokens { min-height: 65px; padding: 13px 0 12px; gap: 9px; }
.draw-card-bottom { border-top-color: #e7edf4; color: #7a8ba1; }
.draw-card-bottom strong { color: var(--sea); }
.draw-card-bottom a, .text-link, .feed-setup-card > a { color: #2368b5; }
.draw-card-bottom a:hover, .text-link:hover { color: #14549a; }
.result-extra { color: #71839a; }
.result-extra b { color: #334d6b; }
.saved-accordion, .small-print { color: #6c7d93; }
.quick-stats { margin-top: 28px; }
.quick-stats-title a { color: #2368b5; }
.quick-stats-card { border: 1px solid #173a67; border-radius: 14px; background: #102b4e; box-shadow: 0 12px 30px rgba(16,43,78,.13); }
.lower-layout, .page-heading { background: #eaf1f8; }
.source-strip { border-bottom-color: #d7e2ef; }
.source-button { border-color: #2368b5; color: #2368b5; border-radius: 999px; }
.source-button:hover { background: #2368b5; color: #fff; }
.site-footer { background: #0b2340; }
.theme-toggle { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 11px; border: 1px solid #cfdaea; border-radius: 999px; background: #fff; color: #526a86; font-size: 10px; font-weight: 750; white-space: nowrap; }
.theme-toggle:hover { border-color: #78a9df; background: #eef6ff; color: #185b9f; }

html[data-theme="dark"] { color-scheme: dark; }
html[data-theme="dark"], html[data-theme="dark"] body { background: #091522; color: #e7eef8; }
html[data-theme="dark"] .site-header { background: rgba(10, 27, 45, .94); border-bottom-color: #233c57; }
html[data-theme="dark"] .brand-text strong { color: #f1f6fc; }
html[data-theme="dark"] .brand-text small, html[data-theme="dark"] .primary-nav a { color: #9fb2c8; }
html[data-theme="dark"] .primary-nav a:hover, html[data-theme="dark"] .primary-nav a[aria-current="page"] { background: #163451; color: #fff; }
html[data-theme="dark"] .theme-toggle { border-color: #3b5875; background: #122b46; color: #d4e5f8; }
html[data-theme="dark"] .theme-toggle:hover { border-color: #75b2ee; background: #1b4268; color: #fff; }
html[data-theme="dark"] .snapshot-banner { background: #06192b; border-color: #1b3855; }
html[data-theme="dark"] .results-heading h1 { color: #f3f7fc; }
html[data-theme="dark"] .eyebrow, html[data-theme="dark"] .toolbar-count, html[data-theme="dark"] .draw-date, html[data-theme="dark"] .saved-accordion, html[data-theme="dark"] .small-print { color: #9eb1c6; }
html[data-theme="dark"] .verify-link, html[data-theme="dark"] .game-filter button, html[data-theme="dark"] .search-box, html[data-theme="dark"] .draw-card, html[data-theme="dark"] .saved-accordion { border-color: #29445f; background: #10243a; color: #dbe8f5; }
html[data-theme="dark"] .game-filter button { color: #afc3d8; }
html[data-theme="dark"] .game-filter button[aria-pressed="true"] { background: #2f80ed; border-color: #5da1f3; color: #fff; }
html[data-theme="dark"] .search-box input { color: #edf5fc; }
html[data-theme="dark"] .search-box input::placeholder { color: #8fa5bc; }
html[data-theme="dark"] .draw-card { box-shadow: 0 12px 30px rgba(0,0,0,.2); }
html[data-theme="dark"] .draw-card-bottom { border-top-color: #29445f; color: #91a6bc; }
html[data-theme="dark"] .draw-card-bottom strong { color: #edf5fc; }
html[data-theme="dark"] .favorite-toggle { border-color: #38526e; background: #16304c; color: #bdd2e8; }
html[data-theme="dark"] .favorite-toggle:hover, html[data-theme="dark"] .favorite-toggle[aria-pressed="true"] { border-color: #6aa7e7; background: #1e4266; }
html[data-theme="dark"] .result-extra { color: #a1b5ca; }
html[data-theme="dark"] .result-extra b { color: #dceafa; }
html[data-theme="dark"] .quick-stats-card, html[data-theme="dark"] .chart-panel, html[data-theme="dark"] .game-chart-panel { background: #0e2945; border-color: #23486d; }
html[data-theme="dark"] .page-heading, html[data-theme="dark"] .lower-layout { background: #10243a; }
html[data-theme="dark"] .source-strip { border-bottom-color: #29445f; }
html[data-theme="dark"] .archive-list, html[data-theme="dark"] .archive-controls, html[data-theme="dark"] .admin-form, html[data-theme="dark"] .admin-help { border-color: #29445f; background: #10243a; }
html[data-theme="dark"] .archive-row { border-bottom-color: #29445f; }
html[data-theme="dark"] .site-footer { background: #061522; }

@media (max-width: 1050px) {
  .results-grid, .detail-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .site-header { height: 62px; }
  .results-heading { align-items: flex-start; padding: 28px 14px 9px; }
  .results-heading h1 { font-size: 34px; }
  .results-heading .verify-link { margin-top: 1px; }
  .dashboard-layout { padding-top: 8px; }
  .game-filter { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 3px; }
  .game-filter button { flex: 0 0 auto; }
  .draw-card { border-radius: 12px; }
  .theme-toggle { padding: 0 9px; font-size: 0; }
  .theme-toggle span[aria-hidden] { font-size: 16px; }
}
