/* 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 { position: relative; white-space: nowrap; text-decoration: none; padding: 8px 11px; font-weight: 600; font-size: 15px; color: var(--muted); transition: color .2s ease; }
.nav a::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 0; height: 2px; border-radius: 2px; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.nav a:hover { color: var(--text); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--text); }

.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); }
.lang-short { display: none; }
@media (max-width: 760px) { .lang-short { display: inline; } }
html[data-region="pr"] .nav a:not(.r-pr), html[data-region="us"] .nav a:not(.r-us) { display: none; }
@media (max-width: 760px) {
  /* The header (with the results ticker) stays pinned on phones too, so keep it compact. */
  .site-head .wrap { padding-block: 6px 0; gap: 4px 10px; }
  .logo { font-size: 19px; }
  .region-switch .seg button, .seg--sm button { padding: 4px 8px; font-size: 12px; }
  .lang { padding: 5px 8px; font-size: 13px; }
  .lang-long { display: none; }
  .nav { order: 4; flex-basis: 100%; }
  .nav a { padding: 6px 9px; font-size: 14px; }
  .nav a::after { left: 9px; right: 9px; }
  .ticker-label { padding-block: 5px; }
  .ti { padding-block: 4px; }
}

/* 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; }
.picks-note { color: var(--muted); font-size: 14px; max-width: 70ch; }
@media (max-width: 560px) { .picks { padding: 16px; } .picks-balls .ball { --s: 42px; } }

/* Lotería Tradicional tickets */
.tkt { display: inline-flex; align-items: baseline; font: 700 15px/1 var(--f-head); letter-spacing: .06em; font-variant-numeric: tabular-nums; padding: 6px 9px; border-radius: 6px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--text); }
.tkt b { color: var(--brand); font-weight: 800; }
.tkt--first { background: var(--brand-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 45%, transparent); }
.prizes { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; max-width: 460px; }
.prizes li { display: grid; grid-template-columns: 7.5rem auto 1fr; align-items: center; gap: 12px; }
.prizes .pz-name { color: var(--muted); font-size: 14px; font-weight: 600; }
.prizes .pz-amt { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.prizes li.first .tkt { font-size: 22px; padding: 8px 12px; background: var(--brand-soft); }
.prizes li.first .pz-name { color: var(--brand); }
.recent .row .tkt { font-size: 13px; padding: 5px 7px; }

/* 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: 560px) {
  .hc-balls { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; }
  .hc-balls button { min-width: 0; width: 100%; }
  .hc-balls .ball { --s: 40px; }
  .hc-balls button > span:last-child { font-size: 12px; white-space: normal; text-align: center; line-height: 1.2; }
}
@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; }

/* check your numbers */
.checker { display: grid; gap: 14px; }
.ck-head h2 { font-size: 24px; font-weight: 700; }
.ck-head p { color: var(--muted); font-size: 15px; margin-top: 4px; }
.ck-form { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.ck-inputs { display: flex; flex-wrap: wrap; gap: 8px; }
.ck-in { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--ball); color: var(--ball-ink); text-align: center; font: 700 19px/1 var(--f-head); font-variant-numeric: tabular-nums; }
.ck-in::placeholder { color: var(--faint); font-weight: 500; }
.ck-in:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent); }
.ck-in--red { border-color: var(--red); } .ck-in--gold { border-color: var(--gold); } .ck-in--green { border-color: var(--green); }
.ck-in--ticket { width: 150px; border-radius: 8px; letter-spacing: .18em; }
.ck-actions { display: flex; gap: 8px; }
.btn { font: 600 15px/1 var(--f-body); padding: 11px 16px; border-radius: 7px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); cursor: pointer; }
.btn:hover { border-color: var(--text); }
.btn--ink { background: var(--ink-btn); color: var(--ink-btn-text); border-color: var(--ink-btn); }
.btn--ink:hover { opacity: .9; }
.ck-error { color: var(--red); font-weight: 600; font-size: 14px; min-height: 0; }
.ck-error:empty { display: none; }
.ck-saved-title { font: 600 12px/1.2 var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.ck-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ck-chips li { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); }
.ck-chip { display: grid; gap: 6px; background: transparent; border: 0; padding: 8px 10px; cursor: pointer; text-align: left; }
.ck-chip small { color: var(--muted); font-size: 12px; }
.ck-chip:hover small { color: var(--text); }
.ck-x { border: 0; border-left: 1px solid var(--line); background: transparent; color: var(--faint); padding: 0 10px; cursor: pointer; }
.ck-x:hover { color: var(--red); }
.ck-result:empty { display: none; }
.ck-result { display: grid; gap: 10px; padding: 16px 18px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); }
.ck-result .ck-win { font-weight: 700; color: var(--brand); font-size: 17px; }
.ck-nums { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 18px; }
.ck-nums li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); line-height: 1.35; }
.ck-nums b { color: var(--text); }
.ck-note { font-size: 13px; color: var(--faint); }
.ck-latest { font-weight: 600; }
.ck-wins { margin: 0; padding-left: 1.2em; }
[data-animate].ck-result, .ck-result[data-animate] { animation: ck-in .35s ease both; }
@keyframes ck-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* 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; align-items: center; }
.grid-controls { display: grid; gap: 8px; }

/* 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; } }



/* ---------- motion ---------- */
/* Logo: bars grow in on load and bounce like an equalizer on hover. */
.logo-mark rect { transform-box: fill-box; transform-origin: 50% 100%; animation: bar-grow .7s cubic-bezier(.2, .8, .2, 1.2) both; }
.logo-mark .lm2 { animation-delay: .1s; } .logo-mark .lm3 { animation-delay: .2s; }
.logo:hover .logo-mark rect { animation: eq 1.2s ease-in-out infinite alternate; }
.logo:hover .logo-mark .lm2 { animation-duration: .95s; animation-delay: -.45s; }
.logo:hover .logo-mark .lm3 { animation-duration: 1.05s; animation-delay: -.2s; }
/* "Heat" burns: heat colors flow through the letters and a warm glow flickers around them. */
.logo b {
  background: linear-gradient(90deg, var(--h8), var(--h7), var(--gold), var(--h7), var(--h8), var(--h7), var(--gold), var(--h8)) 0 0 / 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 4px color-mix(in srgb, var(--h7) 45%, transparent));
  animation: heat-flow 12s linear infinite, heat-glow 5.4s ease-in-out infinite;
}
.logo:hover b { animation-duration: 4.5s, 2.4s; }
@keyframes heat-flow { to { background-position: 300% 0; } }
@keyframes heat-glow {
  0%, 100% { filter: drop-shadow(0 0 3px color-mix(in srgb, var(--h7) 35%, transparent)); }
  40% { filter: drop-shadow(0 0 9px color-mix(in srgb, var(--h7) 75%, transparent)) drop-shadow(0 0 2px color-mix(in srgb, var(--gold) 60%, transparent)); }
  60% { filter: drop-shadow(0 0 6px color-mix(in srgb, var(--h7) 55%, transparent)); }
}
@keyframes bar-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes eq { from { transform: scaleY(1); } to { transform: scaleY(.45); } }

/* Balls lift when they can be tapped. */
.ball { transition: transform .18s cubic-bezier(.2, .8, .2, 1.4), filter .18s ease; }
.hc-balls button:hover .ball, .hc-balls button:focus-visible .ball, .bl-item:hover .ball, .bl-item:focus-visible .ball {
  transform: translateY(-4px) scale(1.08); filter: drop-shadow(0 6px 8px rgba(16, 24, 40, .22));
}
.hc-balls button:hover > span:last-child { color: var(--text); }

/* The latest drawing and today's pick roll in, one ball at a time. */
[data-animate] .hero-balls .ball, [data-animate] .picks-balls .ball { animation: roll-in .6s cubic-bezier(.2, .9, .3, 1.25) both; }
.hero-balls .ball:nth-child(2), .picks-balls .ball:nth-child(2) { animation-delay: .09s; }
.hero-balls .ball:nth-child(3), .picks-balls .ball:nth-child(3) { animation-delay: .18s; }
.hero-balls .ball:nth-child(4), .picks-balls .ball:nth-child(4) { animation-delay: .27s; }
.hero-balls .ball:nth-child(5), .picks-balls .ball:nth-child(5) { animation-delay: .36s; }
.hero-balls .ball:nth-child(6), .picks-balls .ball:nth-child(6) { animation-delay: .45s; }
.hero-balls .ball:nth-child(7), .picks-balls .ball:nth-child(7) { animation-delay: .54s; }
@keyframes roll-in { from { opacity: 0; transform: translateX(-28px) rotate(-240deg) scale(.7); } to { opacity: 1; transform: none; } }

/* "Generate another": balls spin through numbers, then land. */
.picks-balls .ball.rolling { transform: translateY(-3px); filter: blur(.3px); }
.picks-balls .ball.landed { animation: land .45s cubic-bezier(.2, .9, .3, 1.4); }
@keyframes land { 0% { transform: scale(1.22); box-shadow: inset 0 0 0 1px var(--ball-line), 0 0 0 6px color-mix(in srgb, var(--brand) 30%, transparent); } 100% { transform: none; } }
.picks-again.spin svg { animation: spin .7s cubic-bezier(.2, .8, .2, 1); }
@keyframes spin { to { transform: rotate(-360deg); } }

/* Hot / cold panel: balls pop in, counts tick up (motion.mjs), the leaders glow. */
/* rows wait hidden (only when scripts run) and pop in as each one scrolls into view */
.js .hc:not(.seen) .hc-balls li { opacity: 0; transform: translateY(12px) scale(.6); }
.hc.seen .hc-balls li { animation: pop .55s cubic-bezier(.2, .9, .3, 1.4) both; }
.hc.seen .hc-balls li:nth-child(2) { animation-delay: 70ms; } .hc.seen .hc-balls li:nth-child(3) { animation-delay: 140ms; }
.hc.seen .hc-balls li:nth-child(4) { animation-delay: 210ms; } .hc.seen .hc-balls li:nth-child(5) { animation-delay: 280ms; }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.6); } to { opacity: 1; transform: none; } }
.tick { font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
/* Hot and cold balls glow; the hottest and coldest glow brightest, fading down the row, and
   the glow breathes. The light is a blurred disc behind each ball (works in every browser,
   including Safari on iPhone); --glow sets its strength per position. */
.hc-balls button { position: relative; isolation: isolate; }
.hc--hot { --glow-c: var(--h7); } .hc--cold { --glow-c: var(--h1); }
.hc-balls li:nth-child(1) { --glow: 1; } .hc-balls li:nth-child(2) { --glow: .7; } .hc-balls li:nth-child(3) { --glow: .48; }
.hc-balls li:nth-child(4) { --glow: .3; } .hc-balls li:nth-child(5) { --glow: .18; }
.hc--hot .hc-balls button::before, .hc--cold .hc-balls button::before {
  content: ""; position: absolute; z-index: -1; top: 4px; left: 50%; width: 42px; height: 42px; margin-left: -21px;
  border-radius: 50%; background: var(--glow-c); filter: blur(11px); opacity: calc(var(--glow) * .95); pointer-events: none;
  animation: breathe 2.6s ease-in-out infinite;
}
.hc--cold .hc-balls button::before { animation-duration: 3.2s; }
.hc--hot li:nth-child(-n+2) .ball, .hc--cold li:nth-child(-n+2) .ball { box-shadow: inset 0 0 0 2px var(--glow-c); }
@keyframes breathe { 0%, 100% { transform: scale(.95); } 50% { transform: scale(1.4); } }

/* In the full number grid, the hottest and coldest cells glow too. */
.cell.h8, .cell.h0 { animation: cell-glow 2.8s ease-in-out infinite; }
.cell.h7, .cell.h1 { animation: cell-glow-soft 3.4s ease-in-out infinite; }
.cell.h8, .cell.h7 { --cg: var(--h8); } .cell.h0, .cell.h1 { --cg: var(--h0); }
@keyframes cell-glow { 0%, 100% { box-shadow: 0 0 4px 0 color-mix(in srgb, var(--cg) 40%, transparent); } 50% { box-shadow: 0 0 16px 3px color-mix(in srgb, var(--cg) 70%, transparent); } }
@keyframes cell-glow-soft { 0%, 100% { box-shadow: 0 0 0 0 transparent; } 50% { box-shadow: 0 0 10px 1px color-mix(in srgb, var(--cg) 45%, transparent); } }
[data-animate] .cell.h8, [data-animate] .cell.h0 { animation: cell-in .4s ease both, cell-glow 2.8s ease-in-out .5s infinite; animation-delay: calc(var(--i, 0) * 6ms), .5s; }
[data-animate] .cell.h7, [data-animate] .cell.h1 { animation: cell-in .4s ease both, cell-glow-soft 3.4s ease-in-out .5s infinite; animation-delay: calc(var(--i, 0) * 6ms), .5s; }


/* Heatmap: cells ripple in when the view changes and pop on hover. */
.cell { transition: transform .15s ease, box-shadow .15s ease; }
.cell:hover { transform: scale(1.1); position: relative; z-index: 1; }
[data-animate] .cell { animation: cell-in .4s ease both; animation-delay: calc(var(--i, 0) * 6ms); }
@keyframes cell-in { from { opacity: 0; transform: scale(.75); } to { opacity: 1; transform: none; } }

/* Live countdown to the next drawing. */
.countdown { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 15px; color: var(--muted); }
.countdown b { font: 700 18px/1 var(--f-head); color: var(--text); font-variant-numeric: tabular-nums; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: live 1.6s ease-out infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--red) 55%, transparent); } 100% { box-shadow: 0 0 0 9px transparent; } }

/* "See all numbers" arrow and other small affordances. */
.more > summary::after { transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.gcard { transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.gcard:hover { transform: translateY(-2px); }

/* No hover effects while scrolling (see app.mjs). */
.is-scrolling .cell, .is-scrolling .hc-balls button, .is-scrolling .bl-item, .is-scrolling .item { pointer-events: none; }

/* ---------- always-on motion ---------- */
/* Results ticker under the header. */
.ticker { display: flex; align-items: center; border-top: 1px solid var(--line); background: var(--surface-2); font-size: 13px; overflow: hidden; }
.ticker-label { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px 7px max(16px, 4vw); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; font-size: 11px; color: var(--text); background: var(--surface-2); position: relative; z-index: 1; box-shadow: 8px 0 12px -6px var(--surface-2); }
.ticker-viewport { overflow: hidden; flex: 1; -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
.ticker-track { display: flex; width: max-content; min-height: 32px; animation: ticker 160s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-set { display: flex; }
.ti { display: inline-flex; align-items: center; gap: 4px; padding: 6px 18px; text-decoration: none; color: var(--muted); white-space: nowrap; border-right: 1px solid var(--line); }
.ti b { color: var(--text); font-weight: 700; margin-right: 6px; }
.ti small { color: var(--faint); font-weight: 600; }
.ti i { font-style: normal; font: 700 12px/20px var(--f-head); min-width: 20px; height: 20px; padding: 0 4px; border-radius: 10px; text-align: center; background: var(--ball); box-shadow: inset 0 0 0 1px var(--ball-line); color: var(--ball-ink); font-variant-numeric: tabular-nums; }
.ti i.tb-red { background: var(--red); color: #fff; box-shadow: none; } .ti i.tb-gold { background: var(--gold); color: #2b1f00; box-shadow: none; }
.ti i.tb-green { background: var(--green); color: #fff; box-shadow: none; } .ti i.tb-wild { background: var(--wild); color: #fff; box-shadow: none; }
.ti i.tb-num { letter-spacing: .12em; padding: 0 8px; }
.ti:hover b { color: var(--brand); }
html[data-region="pr"] .ti:not(.r-pr), html[data-region="us"] .ti:not(.r-us) { display: none; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Logo: a slow idle equalizer. */
.logo-mark .lm1 { animation: bar-grow .7s cubic-bezier(.2, .8, .2, 1.2) both, idle-a 8s ease-in-out 1s infinite; }
.logo-mark .lm2 { animation: bar-grow .7s cubic-bezier(.2, .8, .2, 1.2) .1s both, idle-b 6.6s ease-in-out 1.2s infinite; }
.logo-mark .lm3 { animation: bar-grow .7s cubic-bezier(.2, .8, .2, 1.2) .2s both, idle-c 9s ease-in-out 1.4s infinite; }
@keyframes idle-a { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.7); } }
@keyframes idle-b { 0%, 100% { transform: scaleY(1); } 40% { transform: scaleY(.62); } }
@keyframes idle-c { 0%, 100% { transform: scaleY(1); } 60% { transform: scaleY(.8); } }

/* Underlines that flow with the heat colors: the current menu item and the panel title. */
.nav a[aria-current="page"]::after, .stats-head h2::after {
  background: linear-gradient(90deg, var(--h8), var(--h6), var(--h1), var(--h6), var(--h8));
  background-size: 300% 100%; animation: flow 4s linear infinite;
}
.stats-head h2 { position: relative; padding-bottom: 8px; }
.stats-head h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 3px; border-radius: 3px; }
@keyframes flow { to { background-position: 300% 0; } }

/* Numbers of the day: a slow warm light drifting across the panel, a sweep across its title,
   and a nudge on the button now and then. */
.picks { position: relative; overflow: hidden; isolation: isolate; }
.picks::before { content: ""; position: absolute; inset: -40%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--h6) 35%, transparent), transparent 70%) 0 0 / 50% 50% no-repeat;
  animation: drift 14s ease-in-out infinite alternate; }
@keyframes drift { 0% { background-position: 10% 20%; } 50% { background-position: 80% 40%; } 100% { background-position: 30% 90%; } }
.picks .eyebrow { background: linear-gradient(90deg, var(--brand) 0 40%, var(--h6) 50%, var(--brand) 60% 100%) 0 0 / 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sweep 3.5s linear infinite; }
@keyframes sweep { from { background-position: 100% 0; } to { background-position: -150% 0; } }
.picks-again svg { animation: nudge 7s ease-in-out 3s infinite; }
@keyframes nudge { 0%, 88%, 100% { transform: rotate(0); } 92% { transform: rotate(-40deg); } 96% { transform: rotate(15deg); } }



/* A light that keeps running around the edge of each content box. */
@property --edge { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.hero, .panel, .picks, .gcard { position: relative; }
.hero::after, .panel::after, .picks::after, .gcard::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none; z-index: 2;
  background: conic-gradient(from var(--edge), transparent 0 62%, color-mix(in srgb, var(--h6) 70%, transparent) 76%, var(--h8) 82%, color-mix(in srgb, var(--h1) 60%, transparent) 88%, transparent 96%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: edge-run 7s linear infinite;
}
.picks::after { animation-duration: 5s; }
#stats::after { animation-delay: -2.3s; }
#recent::after { animation-delay: -4.6s; animation-duration: 9s; }
.more::after { animation-delay: -1.2s; animation-duration: 10s; }
.gcard:nth-child(3n+1)::after { animation-duration: 8s; }
.gcard:nth-child(3n+2)::after { animation-delay: -2.7s; animation-duration: 9s; }
.gcard:nth-child(3n)::after { animation-delay: -5.1s; animation-duration: 7s; }
@keyframes edge-run { to { --edge: 360deg; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.picks-fine { color: var(--faint); font-size: 13px; margin-top: -6px; }
.site-foot .disclaimer { flex-basis: 100%; margin: 0 0 4px; font-size: 13px; color: var(--faint); max-width: 90ch; }

/* results pages */
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.results .panel > h2 { margin-bottom: 8px; }
.res-list { display: grid; }
.res-row { display: grid; grid-template-columns: 11rem 1fr; gap: 8px 16px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.res-row:first-child { border-top: 0; }
.res-row .when { color: var(--muted); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.res-row a.when { text-decoration: none; }
.res-row a.when:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.res-draws { display: grid; gap: 8px; }
.res-draw { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.res-draw .ball { --s: 34px; }
.res-draw .prizes { margin: 0; }
.res-day { display: grid; gap: 16px; }
.res-day .ball { --s: 50px; }
.res-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; font-weight: 600; }
.res-nav a { color: var(--text); text-decoration: none; }
.res-nav a:hover { color: var(--brand); }
.res-links { display: flex; flex-wrap: wrap; gap: 10px; }
.res-links .btn { text-decoration: none; display: inline-flex; align-items: center; }
.res-year { display: grid; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); }
.res-year:first-of-type { border-top: 0; }
.res-year h3 { font-size: 18px; font-weight: 700; }
.res-months { display: flex; flex-wrap: wrap; gap: 6px; }
.res-months a { padding: 6px 12px; border-radius: 6px; border: 1px solid var(--line); text-decoration: none; color: var(--text); font-weight: 600; font-size: 14px; text-transform: capitalize; }
.res-months a:hover { border-color: var(--brand); color: var(--brand); }
.hero-link { font-weight: 600; font-size: 15px; color: var(--brand); text-decoration: none; justify-self: start; }
.hero-link:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 560px) { .res-row { grid-template-columns: 1fr; } }
