/* LottoHeat. A results-and-statistics reference: white working surface, ink type, one heat
   accent used sparingly, and a nine-step blue-to-orange scale reserved for the data itself.
   Layout: header with game menu; per game a title block, results panel, a four-figure summary
   strip, hot/cold/overdue tables, then the full number heatmap. Follows the visitor's light or
   dark system setting. */
:root {
  color-scheme: light;
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-2: #f7f8fa;
  --line: #e1e4ea;
  --line-strong: #cdd2db;
  --text: #141a24;
  --muted: #5d6676;
  --faint: #8a92a0;
  --brand: #d24a12;
  --brand-soft: #fdeee6;
  --cold: #1f5fbf;
  --focus: #1f5fbf;
  --ink-btn: #141a24;
  --ink-btn-text: #ffffff;

  /* heat scale: h0 far colder than typical ... h4 typical ... h8 far hotter */
  --h0: #1d56ad; --h0-t: #ffffff;
  --h1: #3f78cc; --h1-t: #ffffff;
  --h2: #8fb2e4; --h2-t: #0f2547;
  --h3: #cfdcf1; --h3-t: #1b2b45;
  --h4: #eceef2; --h4-t: #2a313d;
  --h5: #fbdcc9; --h5-t: #5a2a10;
  --h6: #f5a67a; --h6-t: #4a1d06;
  --h7: #e2662e; --h7-t: #ffffff;
  --h8: #b83c0c; --h8-t: #ffffff;

  --ball: #ffffff;
  --ball-line: #c9ced8;
  --ball-ink: #141a24;
  --red: #d42b3a;
  --gold: #e3a900;
  --green: #148a4a;
  --wild: #6a48d1;

  --f-head: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --r: 8px;
  --pad: max(16px, 4vw);
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0f1218;
    --surface: #161a22;
    --surface-2: #1b2029;
    --line: #2a303b;
    --line-strong: #3a4250;
    --text: #e9ecf1;
    --muted: #a0a8b6;
    --faint: #7a8392;
    --brand: #ff7a3c;
    --brand-soft: #3a2116;
    --cold: #6aa4ff;
    --focus: #6aa4ff;
    --ink-btn: #e9ecf1;
    --ink-btn-text: #10141b;

    --h0: #3a7ae0; --h0-t: #ffffff;
    --h1: #2c5ca8; --h1-t: #ffffff;
    --h2: #23426f; --h2-t: #dbe7fb;
    --h3: #1f2d44; --h3-t: #c9d6ec;
    --h4: #232a35; --h4-t: #c3cad6;
    --h5: #43291c; --h5-t: #f6d4c1;
    --h6: #6e3519; --h6-t: #ffe0cf;
    --h7: #b8501d; --h7-t: #ffffff;
    --h8: #ec6b2b; --h8-t: #1a0a02;

    --ball: #f2f3f5;
    --ball-line: #f2f3f5;
  }
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.5 var(--f-body); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--f-head); text-wrap: balance; letter-spacing: -0.01em; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.wrap { max-width: 1160px; margin: 0 auto; padding-inline: var(--pad); }
.eyebrow, .k, .ad-label, .r--head, .mlabel {
  font: 600 12px/1.2 var(--f-body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
}

/* ---------- header ---------- */
.site-head { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; }
.site-head .wrap { display: flex; align-items: center; gap: 10px 20px; padding-block: 10px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font: 700 21px/1 var(--f-head); letter-spacing: -0.02em; }
.logo b { font-weight: 700; color: var(--brand); }
.logo-mark { width: 22px; height: 22px; }
.lm1 { fill: var(--h1); } .lm2 { fill: var(--h6); } .lm3 { fill: var(--h8); }
.nav { order: 1; display: flex; gap: 2px; overflow-x: auto; flex: 1 1 0; min-width: 0; scrollbar-width: none; padding-right: 24px;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
.nav::-webkit-scrollbar { display: none; }
.nav a { white-space: nowrap; text-decoration: none; padding: 8px 11px; border-radius: 6px; font-weight: 600; font-size: 15px; color: var(--muted); }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--brand); border-radius: 0; }
.nav .nav-all { color: var(--faint); }
.region-switch { order: 2; margin-left: auto; }
.lang { order: 3; text-decoration: none; font-weight: 600; font-size: 14px; color: var(--muted); padding: 7px 10px; border: 1px solid var(--line); border-radius: 6px; }
.lang:hover { color: var(--text); border-color: var(--line-strong); }
html[data-region="pr"] .nav a:not(.r-pr), html[data-region="us"] .nav a:not(.r-us) { display: none; }
@media (max-width: 760px) {
  .site-head { position: static; }
  .nav { order: 4; flex-basis: 100%; }
}

/* segmented controls */
.seg { display: inline-flex; flex-wrap: wrap; background: var(--surface-2); border: 1px solid var(--line); border-radius: 7px; padding: 2px; }
.seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: 5px; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--ink-btn); color: var(--ink-btn-text); }
.seg--sm button { padding: 5px 10px; font-size: 13px; }
html[data-region="pr"] .region-switch [data-r="pr"], html[data-region="us"] .region-switch [data-r="us"] { background: var(--ink-btn); color: var(--ink-btn-text); }

/* ---------- page ---------- */
.page { display: grid; gap: 24px; padding-block: 28px 56px; }
.page-head { display: grid; gap: 8px; }
.page-head h1 { font-size: clamp(32px, 4.6vw, 46px); line-height: 1.05; font-weight: 750; font-stretch: 88%; }
.h1-sub { display: block; font-size: 0.42em; font-weight: 500; font-stretch: 100%; color: var(--muted); letter-spacing: 0; margin-top: 8px; }
.page-head p { color: var(--muted); max-width: 68ch; }

/* balls */
.ball {
  --s: 34px; width: var(--s); height: var(--s); border-radius: 50%;
  display: inline-grid; place-items: center; flex: none;
  background: var(--ball); box-shadow: inset 0 0 0 1px var(--ball-line), inset 0 -3px 6px rgba(0,0,0,0.06);
  color: var(--ball-ink); font: 700 calc(var(--s) * 0.42)/1 var(--f-head); font-variant-numeric: tabular-nums;
}
.ball--red { background: var(--red); box-shadow: inset 0 -3px 6px rgba(0,0,0,0.18); color: #fff; }
.ball--gold { background: var(--gold); box-shadow: inset 0 -3px 6px rgba(0,0,0,0.14); color: #2b1f00; }
.ball--green { background: var(--green); box-shadow: inset 0 -3px 6px rgba(0,0,0,0.18); color: #fff; }
.ball--wild { background: var(--wild); box-shadow: inset 0 -3px 6px rgba(0,0,0,0.2); color: #fff; }
.ball--tag { margin-left: 8px; }
.ball--sm { --s: 26px; }
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; flex: none; }
.dot--white { background: var(--ball); box-shadow: inset 0 0 0 1px var(--ball-line); }
.dot--red { background: var(--red); } .dot--gold { background: var(--gold); } .dot--green { background: var(--green); } .dot--wild { background: var(--wild); }
.row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* results panel */
.hero {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch;
}
.hero-left { display: grid; gap: 14px; padding: 22px 24px; }
.hero-date { font: 700 20px/1.2 var(--f-head); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.hero-balls { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: center; }
.hero-balls .ball { --s: 52px; }
.hero-row .hero-balls .ball { --s: 46px; }
.hero-next { padding: 22px 24px; border-left: 1px solid var(--line); background: var(--surface-2); border-radius: 0 var(--r) var(--r) 0; min-width: 240px; }
.hero-when { font: 700 22px/1.2 var(--f-head); margin-top: 6px; }
.hero-time { color: var(--muted); margin-top: 4px; font-size: 15px; }
.sess { font: 700 11px/1 var(--f-body); letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 7px; border-radius: 4px; }
.sess--d { background: var(--h5); color: var(--h5-t); }
.sess--n { background: var(--h3); color: var(--h3-t); }
@media (max-width: 680px) {
  .hero { grid-template-columns: 1fr; }
  .hero-left, .hero-next { padding: 18px; }
  .hero-next { border-left: 0; border-top: 1px solid var(--line); border-radius: 0 0 var(--r) var(--r); min-width: 0; }
  .hero-balls .ball, .hero-row .hero-balls .ball { --s: 42px; }
}

/* numbers of the day */
.picks { display: grid; gap: 12px; padding: 18px 24px 20px; border-radius: var(--r); background: var(--brand-soft); }
.picks-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.picks .eyebrow { color: var(--brand); }
.picks-again { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; padding: 4px 0; color: var(--brand); font-weight: 600; font-size: 15px; cursor: pointer; }
.picks-again svg { width: 16px; height: 16px; transition: transform .3s ease; }
.picks-again:hover { text-decoration: underline; text-underline-offset: 3px; }
.picks-again:hover svg { transform: rotate(-90deg); }
.picks-balls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.picks-balls .ball { --s: 48px; animation: pick-in .25s ease both; }
.picks-balls .ball:nth-child(2) { animation-delay: .03s; } .picks-balls .ball:nth-child(3) { animation-delay: .06s; }
.picks-balls .ball:nth-child(4) { animation-delay: .09s; } .picks-balls .ball:nth-child(5) { animation-delay: .12s; }
.picks-balls .ball:nth-child(6) { animation-delay: .15s; }
@keyframes pick-in { from { transform: scale(.85); opacity: .4; } to { transform: none; opacity: 1; } }
.picks-note { color: var(--muted); font-size: 14px; max-width: 70ch; }
@media (max-width: 560px) { .picks { padding: 16px; } .picks-balls .ball { --s: 42px; } }
@media (prefers-reduced-motion: reduce) { .picks-balls .ball { animation: none; } .picks-again svg { transition: none; } }

/* hot / cold / overdue panel */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hc-panel { display: grid; gap: 20px; }
.stats-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 20px; }
.stats-head h2 { font-size: 24px; font-weight: 700; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.select { position: relative; display: inline-block; }
.select::after { content: ""; position: absolute; right: 12px; top: 50%; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.select select { appearance: none; -webkit-appearance: none; font: 600 15px/1.2 var(--f-body); color: var(--text); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 6px; padding: 8px 34px 8px 12px; cursor: pointer; }
.select select:hover { border-color: var(--text); }
.hcov { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.hc { padding: 18px 20px 4px; border-left: 1px solid var(--line); display: grid; gap: 4px; align-content: start; }
.hc:first-child { border-left: 0; padding-left: 0; }
.hc h3 { font-size: 18px; font-weight: 700; }
.hc--hot h3 { color: var(--brand); } .hc--cold h3 { color: var(--cold); }
.hc p { color: var(--muted); font-size: 14px; }
.hc-balls { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.hc-balls button { display: grid; justify-items: center; gap: 5px; background: transparent; border: 0; padding: 4px 2px; border-radius: 6px; cursor: pointer; min-width: 52px; }
.hc-balls button:hover { background: var(--surface-2); }
.hc-balls .ball { --s: 42px; }
.hc-balls button > span:last-child { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 860px) {
  .hcov { grid-template-columns: 1fr; }
  .hc { border-left: 0; padding: 16px 0 4px; }
  .hc + .hc { border-top: 1px solid var(--line); }
}
.bonus-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding-top: 14px; border-top: 1px solid var(--line); }
.bl-name { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; margin-right: 4px; }
.bl-item { display: inline-flex; align-items: center; gap: 8px; background: transparent; border: 0; padding: 2px 4px; border-radius: 6px; cursor: pointer; color: var(--muted); font-size: 15px; }
.bl-item:hover { background: var(--surface-2); color: var(--text); }
.bl-item .ball { --s: 30px; }

/* see all numbers */
.more { padding: 0; }
.more > summary { list-style: none; cursor: pointer; padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.more > summary::-webkit-details-marker { display: none; }
.more > summary span { display: grid; gap: 2px; }
.more > summary strong { font: 700 20px/1.2 var(--f-head); }
.more > summary small { color: var(--muted); font-size: 14px; }
.more > summary::after { content: ""; width: 9px; height: 9px; flex: none; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .15s ease; margin-right: 4px; }
.more[open] > summary::after { transform: rotate(225deg); }
.more > summary:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.more #grid { padding: 4px 24px 24px; border-top: 1px solid var(--line); display: grid; }
.more .grid-head { padding-top: 16px; }

/* most repeated Pega numbers (inside "see all") */
.band { display: grid; gap: 12px; margin-top: 28px; }
.band-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.band-head h2 { font-size: 18px; font-weight: 700; }
.band-head p { color: var(--muted); font-size: 14px; }
.combos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
.combos li { display: grid; grid-template-columns: 1.5ch auto 1fr auto; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.rk { font-weight: 600; font-size: 13px; color: var(--faint); text-align: right; font-variant-numeric: tabular-nums; }
.val { font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.combo { display: flex; gap: 4px; }
.combo .ball { --s: 30px; }
.combos .when { color: var(--muted); font-size: 14px; white-space: nowrap; }
@media (max-width: 800px) {
  .combos { grid-template-columns: 1fr; }
  .combos li { grid-template-columns: 1.5ch auto 1fr; grid-template-areas: "rk combo val" "rk combo when"; row-gap: 2px; }
  .combos .rk { grid-area: rk; } .combo { grid-area: combo; } .combos .val { grid-area: val; } .combos .when { grid-area: when; text-align: right; }
}

/* heat levels (cells, bars, legend) */
.h0 { background: var(--h0); color: var(--h0-t); } .h1 { background: var(--h1); color: var(--h1-t); }
.h2 { background: var(--h2); color: var(--h2-t); } .h3 { background: var(--h3); color: var(--h3-t); }
.h4 { background: var(--h4); color: var(--h4-t); } .h5 { background: var(--h5); color: var(--h5-t); }
.h6 { background: var(--h6); color: var(--h6-t); } .h7 { background: var(--h7); color: var(--h7-t); }
.h8 { background: var(--h8); color: var(--h8-t); }
.h-muted { background: var(--faint); }

/* panels: heatmap + recent */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; }
.panel > h2, .grid-head h2 { font-size: 24px; font-weight: 700; }
.grid-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 14px 24px; }
.grid-head p { color: var(--muted); font-size: 15px; margin-top: 4px; }
.legend { display: grid; gap: 6px; margin-top: 18px; max-width: 360px; }
.legend .ramp { display: grid; grid-template-columns: repeat(9, 1fr); gap: 2px; height: 10px; }
.legend .ramp i { border-radius: 2px; }
.legend .ticks { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.grid-label { display: flex; align-items: center; gap: 8px; margin-top: 24px; font: 700 16px/1.2 var(--f-head); }
.grid-note { color: var(--muted); font-size: 14px; margin-top: 4px; }
.heat { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 4px; margin-top: 12px; }
@media (max-width: 560px) { .heat { grid-template-columns: repeat(var(--cols-sm), minmax(0, 1fr)); gap: 3px; } }
.cell { border: 0; border-radius: 4px; cursor: pointer; padding: 8px 2px 7px; display: grid; justify-items: center; gap: 2px; min-width: 0; transition: box-shadow .12s ease; }
.cell:hover { box-shadow: 0 0 0 2px var(--text); }
.cell .n { font: 700 19px/1 var(--f-head); font-variant-numeric: tabular-nums; }
.cell .c { font-size: 11px; line-height: 1; opacity: 0.85; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; max-width: 100%; }
@media (max-width: 560px) { .cell .n { font-size: 16px; } .cell .c { font-size: 9px; } }
.matrix { display: grid; gap: 8px; margin-top: 8px; }
.mrow { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); align-items: center; gap: 12px; }
.mrow .heat { margin-top: 0; }
@media (max-width: 640px) { .mrow { grid-template-columns: 1fr; gap: 4px; } }

.recent { display: grid; margin-top: 10px; }
.recent .r { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.recent .r:first-child { border-top: 0; }
.recent .when { font-size: 15px; color: var(--muted); min-width: 15ch; font-variant-numeric: tabular-nums; }
.recent--sessions .r { display: grid; grid-template-columns: 11rem 1fr 1fr; }
.recent--sessions .r--head + .r { border-top: 1px solid var(--line); }
.recent .ball { --s: 30px; }
.sess-cell { display: flex; align-items: center; gap: 8px; }
.sess-cell .sess { display: none; }
.pending { color: var(--faint); font-size: 14px; }
@media (max-width: 640px) {
  .recent--sessions .r { grid-template-columns: 1fr; gap: 8px; }
  .recent--sessions .r--head { display: none; }
  .sess-cell .sess { display: inline-block; min-width: 4.5rem; text-align: center; }
}

/* explainer */
.explain { display: grid; gap: 10px; max-width: 72ch; padding-top: 8px; }
.explain h2 { font-size: 20px; font-weight: 700; }
.explain ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; color: var(--muted); }
.explain strong { color: var(--text); }

/* ads */
.ad { display: grid; gap: 4px; justify-items: center; min-height: 100px; }
.ad ins { width: 100%; }
.ad--preview .ad-box { width: 100%; height: 100px; border: 1px dashed var(--line-strong); border-radius: var(--r); display: grid; place-items: center; color: var(--faint); font-size: 13px; }

/* all-games page */
.home-regions { display: flex; flex-direction: column; gap: 32px; }
html[data-region="us"] .region--pr { order: 2; }
.region { display: grid; gap: 12px; }
.region h2 { font-size: 24px; font-weight: 700; }
.gcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.gcard { display: grid; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; text-decoration: none; }
.gcard:hover { border-color: var(--line-strong); box-shadow: 0 2px 10px rgba(16, 24, 40, 0.06); }
.gcard-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.gcard h3 { font-size: 22px; font-weight: 700; }
.gcard .when { color: var(--muted); font-size: 14px; }
.gcard .row .ball { --s: 32px; }
.gcard-hot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font: 600 12px/1 var(--f-body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand); padding-top: 12px; border-top: 1px solid var(--line); }
.gcard-hot > span:first-child { margin-right: 4px; }
.gcard .go { margin-left: auto; color: var(--text); letter-spacing: 0; text-transform: none; font-size: 15px; font-weight: 600; }

/* prose (privacy) */
.prose { max-width: 70ch; display: grid; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 28px 32px; }
.prose h1 { font-size: clamp(28px, 4vw, 38px); font-weight: 750; }
.prose h2 { font-size: 20px; font-weight: 700; margin-top: 10px; }
.prose p, .prose li { color: var(--muted); }
.prose ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.prose a { color: var(--cold); }

/* footer */
.site-foot { border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 14px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 22px calc(22px + env(safe-area-inset-bottom, 0px)); }
.site-foot a { color: var(--muted); }

/* number detail */
dialog { width: min(620px, calc(100% - 32px)); max-height: calc(100% - 32px); overflow: auto; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 24px; box-shadow: 0 20px 60px rgba(10, 16, 28, 0.25); }
dialog::backdrop { background: rgba(10, 14, 22, 0.55); }
.dlg { display: grid; gap: 20px; }
.dlg-top { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; }
.dlg-top .ball { --s: 72px; }
.dlg-top h2 { font-size: 26px; font-weight: 750; }
.tag { display: inline-block; margin-top: 8px; font: 700 12px/1 var(--f-body); letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 8px; border-radius: 4px; }
.tag--hot { background: var(--h7); color: var(--h7-t); }
.tag--cold { background: var(--h1); color: var(--h1-t); }
.tag--avg { background: var(--h4); color: var(--h4-t); }
.close { align-self: start; border: 1px solid var(--line); background: var(--surface-2); width: 34px; height: 34px; border-radius: 6px; cursor: pointer; font-size: 16px; line-height: 1; color: var(--muted); }
.close:hover { color: var(--text); }
.summary { font-size: 17px; line-height: 1.55; }
.summary strong { color: var(--brand); }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--r); }
.stat { padding: 14px 16px; }
.stat:nth-child(even) { border-left: 1px solid var(--line); }
.stat:nth-child(n+3) { border-top: 1px solid var(--line); }
.stat .v { font: 700 26px/1.1 var(--f-head); font-variant-numeric: tabular-nums; margin-top: 4px; }
.stat .v--sm { font-size: 20px; }
.stat .v small { font: 400 14px/1 var(--f-body); color: var(--muted); margin-left: 6px; }
.timeline svg { display: block; width: 100%; height: 52px; }
.tl-hit { fill: var(--brand); }
.tl-axis { fill: var(--line-strong); }
.timeline .ends { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-top: 4px; }
.timeline p { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
@media (max-width: 460px) { .dlg-top .ball { --s: 56px; } .dlg-top h2 { font-size: 22px; } }

@media (prefers-reduced-motion: reduce) { .cell { transition: none; } }
