/* Compact dark showcase, natural-flow navigation and shared information footer. */
html {
  color-scheme: dark;
  scroll-padding-top: 1rem;
}

.site-head {
  position: relative !important;
  top: auto !important;
  bottom: auto !important;
}
.site-head .head-row { position: relative; min-width: 0; }
.site-head .brand { min-width: 0; }
.site-head .brand-mark { flex: none; }
.site-head .brand i { display: none; }
.site-head .head-right { min-width: 0; flex: none; }
.site-head .btn-play {
  min-height: 44px;
  justify-content: center;
  white-space: nowrap;
}
.site-head .catbar { position: relative !important; top: auto !important; }
.site-head .catbar a { min-height: 44px; }
main :is(h1, h2, h3, [id]) { scroll-margin-top: 1rem; }
.site-head :is(a, summary),
.almanac-primary-offers :is(a, summary),
.almanac-footer a,
.offerbar :is(a, button) { touch-action: manipulation; }
:is(a, button, summary, input, select, textarea):focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

/* The former one-pixel mobile picture must not reserve a square of empty space. */
.hero:has(.almanac-primary-offers) { padding: 2rem 0 1.5rem; }
.hero:has(.almanac-primary-offers) h1 {
  max-width: 30ch;
  text-wrap: balance;
}
.hero__grid:has(.almanac-primary-offers) {
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}
.hero__copy:has(.almanac-primary-offers) { grid-column: 1 / -1; min-width: 0; }
.hero__grid:has(.almanac-primary-offers) > picture {
  width: min(100%, 180px);
  justify-self: end;
}
.hero__grid:has(.almanac-primary-offers) > picture .hero__art {
  width: 100%;
  height: auto;
  max-height: 180px;
  object-fit: contain;
  margin: 0;
}
.hero:has(> .heroart):has(.almanac-primary-offers) {
  display: block;
}
.hero:has(.almanac-primary-offers) > .heroart {
  width: min(100%, 180px);
  max-height: 120px;
  object-fit: cover;
  margin: 1rem 0 0 auto;
}
.hero:has(.almanac-primary-offers) .hero__btns { margin-top: 1rem; }
.hero:has(.almanac-primary-offers) .lede { margin-bottom: 1.2rem; }
.hero:has(.almanac-primary-offers) .reelstrip { margin-top: 1.6rem; }

.almanac-primary-offers { min-width: 0; margin: .85rem 0 1.1rem; }
.almanac-primary-offers > .toplist {
  margin: 0;
  min-width: 0;
  gap: .7rem;
}
.almanac-primary-offers .offer {
  min-width: 0;
  border-radius: 16px;
  background: var(--bg-2);
  box-shadow: 0 8px 28px -20px #000;
}
.almanac-primary-offers .offer--1 {
  border-color: color-mix(in srgb, var(--magenta) 42%, var(--line));
  box-shadow: 0 0 0 1px #ff3d8112, 0 12px 34px -28px #ff3d81;
}
.almanac-primary-offers .offer::after { height: 2px; }
.almanac-primary-offers .offer:hover {
  transform: none;
  border-color: color-mix(in srgb, var(--tint, var(--cyan)) 55%, var(--line));
}
.almanac-primary-offers .offer__backdrop { opacity: .3; }
.almanac-primary-offers .offer__rank {
  top: 7px;
  left: 12px;
  padding: 4px 7px;
  font-size: .64rem;
  border-radius: 5px;
}
.almanac-primary-offers .offer__badge {
  top: 7px;
  right: 12px;
  padding: 4px 8px;
  font-size: .54rem;
  line-height: 1.2;
  letter-spacing: .08em;
}
.almanac-primary-offers .offer__body {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 88px 152px;
  gap: .85rem;
  align-items: center;
  padding: 30px 12px 9px;
  background: linear-gradient(90deg, #0b0d12f2, #0b0d12dc 65%, #0b0d1270);
}
.almanac-primary-offers .offer__body > * { min-width: 0; }
.almanac-primary-offers .offer__logo {
  height: 52px;
  border-radius: 10px;
  background: #101923;
}
.almanac-primary-offers .offer__logo img { padding: .4rem .5rem; }
.almanac-primary-offers .offer__wordmark { font-size: 1rem; overflow-wrap: anywhere; }
.almanac-primary-offers .offer__brand {
  margin: 0 0 3px;
  font-size: .7rem;
  line-height: 1.2;
}
.almanac-primary-offers .offer__headline {
  margin: 0;
  font-size: clamp(1rem, .88rem + .3vw, 1.18rem);
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.almanac-primary-offers .offer__score {
  background: #0b0d12b8;
  padding: 2px 3px;
  border-radius: 9px;
}
.almanac-primary-offers .offer__stars { font-size: .68rem; letter-spacing: .04em; line-height: 1.1; }
.almanac-primary-offers .offer__num {
  font-size: 1.36rem;
  line-height: 1.15;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.almanac-primary-offers .score-outof { font-size: .66rem; }
.almanac-primary-offers .offer__scorelabel {
  margin-top: 2px;
  color: var(--ink-2);
  font-size: .6rem;
  line-height: 1.2;
}
.almanac-primary-offers .offer__cta { gap: 0; }
.almanac-primary-offers .offer__cta .btn-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .6rem .55rem;
  border-radius: 10px;
  font-size: .8rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.almanac-primary-offers .offer__terms {
  font-size: .65rem;
  color: var(--ink-2);
  background: #11141bbd;
}
.almanac-primary-offers .offer__terms summary {
  min-height: 30px;
  align-items: center;
  padding: 5px 12px;
}
.almanac-primary-offers .offer__terms .full {
  padding: 4px 12px 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

/* A disclosure belongs to the document header, not the scrolling viewport. */
.site-head .toplist-menu summary {
  display: flex;
  align-items: center;
  min-height: 44px;
}
.site-head .toplist-menu .toplist-menu-panel {
  position: absolute !important;
  top: 100% !important;
  left: auto !important;
  right: 0 !important;
  width: 650px;
  max-width: calc(100vw - 32px);
  max-height: min(70dvh, 680px);
  padding: 16px;
  background: var(--bg-2);
  color: var(--ink);
  border-color: var(--line-2);
  overscroll-behavior: contain;
}
.site-head .toplist-menu .toplist-menu-panel > div { min-width: 0; }
.site-head .toplist-menu .toplist-menu-panel strong { color: var(--lime-2); }
.site-head .toplist-menu .toplist-menu-panel a {
  display: flex !important;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 8px 0;
  color: var(--ink) !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
  line-height: 1.4;
}
.site-head .toplist-menu .toplist-menu-panel a:hover { color: var(--lime-2) !important; }

/* A small branded capsule fits phones including safe-area browser insets. */
.offerbar#offerbar {
  left: max(12px, env(safe-area-inset-left)) !important;
  right: max(12px, env(safe-area-inset-right)) !important;
  bottom: calc(12px + env(safe-area-inset-bottom)) !important;
  width: min(520px, calc(100% - 24px));
  margin-inline: auto;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: #11141bf5;
  box-shadow: 0 12px 40px -14px #000b;
  transform: translateY(calc(100% + 32px + env(safe-area-inset-bottom)));
  visibility: hidden;
  pointer-events: none;
  transition: transform .3s ease, visibility .3s;
}
.offerbar#offerbar.show { transform: none; visibility: visible; pointer-events: auto; }
.offerbar .offerbar-in {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) 100px 44px;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 10px;
}
.offerbar .offerbar__logo {
  display: block;
  width: 80px;
  height: 44px;
  object-fit: contain;
  padding: 5px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #101923;
}
.offerbar .offerbar__txt { min-width: 0; }
.offerbar .offerbar__txt strong {
  font-size: .88rem;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
  color: var(--ink);
}
.offerbar .btn-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  width: 100%;
  margin: 0;
  padding: 8px 6px;
  border-radius: 10px;
  font-size: .8rem;
  line-height: 1.2;
}
.offerbar .offerbar__close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 50%;
  background: #1d222e;
  color: var(--ink-2);
}
.offerbar .offerbar__close:hover { background: #262c3b; color: var(--ink); }

.site-foot.almanac-footer {
  margin-top: 2.8rem;
  padding: 2.2rem 0 calc(6rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: linear-gradient(120deg, #11141b, #14191e 55%, #18151e);
  color: var(--ink-2);
  font-size: .88rem;
}
.almanac-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  min-height: 44px;
  margin-bottom: 1.5rem;
  color: var(--ink);
  text-decoration: none;
  font-size: 1rem;
}
.almanac-footer__mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--lime);
  color: #0a1210;
  font-size: .85rem;
  font-weight: 800;
}
.almanac-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 2rem;
}
.almanac-footer__grid > * { min-width: 0; }
.almanac-footer__grid :is(h2, h3, h4, strong) {
  display: block;
  margin: 0 0 .6rem;
  color: var(--ink-2);
  font: 700 .72rem/1.3 var(--font);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.almanac-footer__grid a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 0;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.almanac-footer__grid a:hover { color: var(--lime-2); text-decoration: underline; }
.almanac-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: .75rem;
}
.almanac-footer__bottom :is(p, small) { margin: 0; }
.almanac-footer__bottom small { display: flex; flex-wrap: wrap; align-items: center; gap: 0 .3rem; }
.almanac-footer__bottom small a { display: inline-flex; align-items: center; min-height: 44px; }
.almanac-footer__back-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  min-width: 44px;
  min-height: 44px;
  border-radius: 10px;
  background: var(--lime);
  color: #0a1210;
  font-size: 1.3rem;
  text-decoration: none;
}
.almanac-footer__back-top:hover { background: var(--lime-2); color: #0a1210; }
.almanac-utility { padding-bottom: 1rem; }
.almanac-utility section { margin-top: 1.8rem; }
.almanac-utility ul { padding-left: 1.2rem; }
.almanac-utility li { margin-bottom: .5rem; overflow-wrap: anywhere; }
.almanac-utility li a { display: inline-flex; align-items: center; min-height: 44px; }

@media (max-width: 900px) {
  .hero__grid:has(.almanac-primary-offers) > picture { display: none; }
}
@media (max-width: 700px) {
  .hero:has(.almanac-primary-offers) { padding: 1.5rem 0 1rem; }
  .hero:has(.almanac-primary-offers) > .heroart { display: none; }
  .almanac-primary-offers { margin-top: .8rem; }
  .almanac-primary-offers > .toplist { gap: .6rem; }
  .almanac-primary-offers .offer { border-radius: 14px; }
  .almanac-primary-offers .offer__body {
    grid-template-columns: 88px minmax(0, 1fr);
    grid-template-areas: 'logo copy' 'score cta';
    gap: 6px 10px;
    padding: 27px 10px 8px;
  }
  .almanac-primary-offers .offer__logo { grid-area: logo; height: 44px; }
  .almanac-primary-offers .offer__copy { grid-area: copy; }
  .almanac-primary-offers .offer__score { grid-area: score; padding: 0; text-align: center; }
  .almanac-primary-offers .offer__cta { grid-area: cta; }
  .almanac-primary-offers .offer__brand { font-size: .64rem; }
  .almanac-primary-offers .offer__headline { font-size: .9rem; line-height: 1.22; }
  .almanac-primary-offers .offer__stars { font-size: .58rem; }
  .almanac-primary-offers .offer__num { font-size: 1.2rem; }
  .almanac-primary-offers .score-outof { font-size: .58rem; }
  .almanac-primary-offers .offer__scorelabel { font-size: .54rem; }
  .site-head .toplist-menu { position: static !important; }
  .site-head .toplist-menu .toplist-menu-panel {
    left: auto !important;
    right: 0 !important;
    width: min(480px, calc(100vw - 32px));
    max-width: 100%;
    max-height: calc(100dvh - 140px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
  .almanac-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
  .almanac-footer__grid > * + * { border-top: 1px solid var(--line); padding-top: 1.2rem; }
}
@media (max-width: 480px) {
  .site-head .head-row { gap: .4rem; }
  .site-head .brand { gap: .4rem; }
  .site-head .brand-mark { width: 28px; height: 30px; }
  .site-head .brand b { font-size: .84rem; white-space: nowrap; }
  .site-head .head-right { gap: .25rem; }
  .site-head .toplist-menu summary { padding: 8px 4px; font-size: .73rem; }
  .site-head .btn-play { padding: .6rem .55rem; font-size: .72rem; }
  .site-head .toplist-menu .toplist-menu-panel {
    left: auto !important;
    right: 0 !important;
    width: calc(100vw - 32px);
    grid-template-columns: minmax(0, 1fr);
  }
  .offerbar .offerbar-in {
    grid-template-columns: 70px minmax(0, 1fr) 82px 44px;
    gap: 6px;
    padding: 8px;
  }
  .offerbar .offerbar__logo { width: 70px; }
  .offerbar .offerbar__txt strong { font-size: .75rem; }
  .offerbar .btn-cta { font-size: .76rem; }
  .site-foot.almanac-footer { padding-top: 1.7rem; }
}
@media (max-width: 360px) {
  .site-head .brand b { font-size: .76rem; }
  .site-head .brand-mark { width: 26px; }
  .site-head .btn-play { padding-inline: .45rem; font-size: .68rem; }
  .site-head .toplist-menu summary { font-size: .68rem; padding-inline: 3px; }
  .almanac-primary-offers .offer__body { grid-template-columns: 78px minmax(0, 1fr); gap: 6px 8px; }
  .almanac-primary-offers .offer__headline { font-size: .85rem; }
  .offerbar .offerbar__txt strong { font-size: .7rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .offerbar,
  .almanac-primary-offers .offer,
  .almanac-primary-offers .btn-cta,
  .almanac-footer a { animation: none; transition: none; }
}
