/* ARCAVOTE homepage consolidation: real rankings remain independent of paid placement. */
.home-intro {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end;
  gap: 8px 20px; padding-top: 23px; padding-bottom: 13px;
}
.home-intro h1 { font-size: clamp(25px, 2.6vw, 33px); line-height: 1.14; letter-spacing: -.032em; }
.home-intro p { margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.home-intro p a { color: var(--accent); text-underline-offset: 2px; }
.home-intro-link, .home-section-heading > a {
  color: var(--accent); text-decoration: none; font-size: 13px; font-weight: 650;
}
.home-intro-link:hover, .home-section-heading > a:hover { text-decoration: underline; text-underline-offset: 3px; }
.home-intro-link:focus-visible, .home-section-heading > a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.home-featured { padding-top: 9px; padding-bottom: 20px; }
.home-section-heading {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 6px 17px;
}
.home-section-heading h2 { font-size: clamp(18px, 2vw, 22px); line-height: 1.25; }
.home-section-heading .label { display: block; margin-bottom: 3px; font-size: 10px; }
.home-section-note { color: var(--muted); font-size: 12px; }
.home-featured .spot-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px; margin-top: 12px;
}
.home-featured .spot-card { min-width: 0; box-shadow: none; }
/* Reuse existing artwork surfaces as predictable, keyboard-accessible links. */
.home-featured .spot-media { text-decoration: none; }
.home-featured .spot-media:hover { filter: brightness(1.05); }
.home-featured .spot-media:focus-visible {
  outline: 3px solid var(--accent); outline-offset: -3px;
}
#toplist .entry .banner-slot { text-decoration: none; }
#toplist .entry .banner-slot:hover { outline: 2px solid var(--accent); }
#toplist .entry .banner-slot:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 3px;
}

.home-featured .spot-media { aspect-ratio: auto; height: 113px; padding: 11px 12px; }
.home-featured .spot-media strong { font-size: 20px; line-height: 1.12; }
.home-featured .spot-body { padding: 12px; }
.home-featured .spot-body > a { max-width: 100%; font-size: 16px !important; overflow-wrap: anywhere; }
.home-featured .spot-body .mono.dim { font-size: 11px !important; }
.home-featured .spot-body p {
  flex: none; margin-top: 5px; font-size: 12px; line-height: 1.35;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  line-clamp: 2; overflow: hidden;
}
.home-featured .spot-foot { margin-top: auto; padding-top: 10px; gap: 6px; }
.home-featured .spot-foot .btn { min-height: 44px; height: 44px; padding: 0 11px; font-size: 12px; }
.home-featured .spot-foot > div:first-child .mono { font-size: 15px !important; }
.home-featured-empty {
  margin-top: 12px; padding: 12px 15px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 7px 15px; border: 1px dashed var(--line-3); border-radius: var(--r);
  color: var(--text-2); background: var(--panel); font-size: 13px;
}
.home-top-picks { padding-top: 2px; padding-bottom: 13px; }
.home-top-picks .home-section-heading { margin-bottom: 9px; }
.home-top-picks-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.home-top-pick {
  display: flex; align-items: center; min-width: 0; min-height: 62px; gap: 10px;
  padding: 11px 13px; border: 1px solid var(--line-2); border-radius: var(--r-btn);
  background: var(--panel); color: var(--text); text-decoration: none;
}
.home-top-pick:hover { border-color: var(--accent); color: var(--text); }
.home-top-pick:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.home-top-pick-rank { flex: none; color: var(--accent); font-weight: 800; font-size: 16px; }
.home-top-pick-name { min-width: 0; flex: 1; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-top-pick-votes { flex: none; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.home-worlds { padding-top: 7px; padding-bottom: 19px; }
.home-worlds .home-section-heading { margin-bottom: 9px; }
.home-worlds .world-grid {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px;
}
.home-worlds .world-tile {
  display: block; position: relative; min-width: 0; height: 88px;
  overflow: hidden; isolation: isolate; border-radius: 8px;
  border: 1px solid rgba(18,28,40,.22); background: #27394a;
  color: #fff; text-decoration: none;
  text-shadow: 0 1px 2px rgba(0,0,0,.55);
}
.home-worlds .world-tile-art {
  position: absolute; inset: 0; z-index: -1;
  background-position: center; background-size: cover;
  transition: transform .2s ease;
}
.home-worlds .world-tile-art img {
  width: 100%; height: 100%; display: block; object-fit: cover; object-position: center;
}
.home-worlds .world-tile-art::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,15,26,.03) 8%, rgba(7,15,26,.36) 53%, rgba(7,15,26,.85) 100%);
  pointer-events: none;
}
.home-worlds .world-tile-content { position: absolute; inset: auto 0 0; padding: 12px 9px 8px; }
.home-worlds .world-tile strong { font-size: 13px; line-height: 1.15; font-weight: 750; color: #fff; overflow-wrap: anywhere; }
.home-worlds .world-tile:hover { border-color: var(--accent); }
.home-worlds .world-tile:hover .world-tile-art { transform: scale(1.04); }
.home-worlds .world-tile:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.home-worlds-more { margin-top: 9px; }
.home-worlds-more > summary {
  display: inline-flex; align-items: center; min-height: 44px; gap: 7px; cursor: pointer; padding: 9px 5px;
  font-size: 12px; font-weight: 650; color: var(--accent);
}
.home-worlds-more > summary span { color: var(--muted); }
.home-worlds-more > summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.home-worlds-more .world-grid { margin: 8px 0 10px; }
.home-rewards-details { margin-top: 5px; }
.home-rewards-details > summary { min-height: 42px; display: flex; align-items: center; cursor: pointer; color: var(--accent); font-size: 13px; font-weight: 650; }
.home-rewards-details > summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.home-rewards-details .code { margin-top: 7px; }
/* Active hidden-category context stays visible while the long facet list stays closed. */
.active-category-filter {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 14px; padding: 9px 12px; margin: 12px 0 6px;
  border: 1px solid var(--line-2); border-radius: var(--r-btn);
  background: var(--panel-2); color: var(--text-2); font-size: 13px;
}
.active-category-filter strong { color: var(--text); font-weight: 750; }
.active-category-filter a { color: var(--accent); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.active-category-filter a:hover { color: var(--text); }
.active-category-filter a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.ranking-more-filters { margin: 8px 0 10px; }
.ranking-more-filters > summary {
  cursor: pointer; padding: 9px 12px; border: 1px solid var(--line-2);
  border-radius: var(--r-btn); background: var(--panel); color: var(--text);
  font-weight: 650; font-size: 13px;
}
.ranking-more-filters > summary:hover { border-color: var(--accent); }
.ranking-more-filters > summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.ranking-more-filters .facet-count { margin-left: 6px; color: var(--muted); font-weight: 400; }
.ranking-more-filters .facet-details { margin-top: 8px; }
.ranking-more-filters .chips { margin: 9px 0 8px; }
.home-worlds + #toplist { padding-top: 15px; }
.rankings-heading { font-size: clamp(25px, 2.8vw, 33px); font-weight: 730; line-height: 1.2; margin-top: 5px; }
@media (max-width: 850px) and (min-width: 621px) {
  .home-top-picks-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-top-pick { flex-wrap: wrap; row-gap: 3px; }
  .home-top-pick-votes { margin-left: auto; }
}
@media (max-width: 1050px) {
  .home-featured .spot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-worlds .world-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  /* One compact, readable vote row: rank / banner / title / votes + CTA. */
  #toplist .entry {
    display: grid; grid-template-columns: 36px minmax(0, 1fr) auto;
    align-items: center; column-gap: 10px; row-gap: 7px; padding: 12px;
  }
  #toplist .entry .rank { grid-column: 1; grid-row: 1 / 4; width: 36px; gap: 5px; align-self: stretch; align-items: start; }
  #toplist .entry .rank b { font-size: 19px; }
  #toplist .entry .rank i { height: 100%; max-height: 112px; }
  #toplist .entry .banner-slot { grid-column: 2 / 4; grid-row: 1; max-width: 100%; }
  #toplist .entry .entry-info { grid-column: 2 / 4; grid-row: 2; min-width: 0; }
  #toplist .entry .entry-info .entry-sub { max-width: 100%; }
  #toplist .entry .entry-score {
    grid-column: 2; grid-row: 3; width: auto; min-width: 0;
    display: flex; flex-wrap: wrap; align-items: center; gap: 3px 7px;
    text-align: left;
  }
  #toplist .entry .entry-score b { font-size: 16px; }
  #toplist .entry > .btn { grid-column: 3; grid-row: 3; min-width: 80px; min-height: 44px; justify-content: center; }
  #toplist .layout-main > .chips {
    flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px;
    gap: 7px; margin: 11px 0 8px; overscroll-behavior-x: contain;
  }
  #toplist .layout-main > .chips .chip { flex: 0 0 auto; }
  .home-intro { padding-top: 16px; padding-bottom: 10px; }
  .home-intro-link { display: none; }
  .home-featured { padding-top: 8px; padding-bottom: 14px; }
  .home-section-note { order: 3; flex-basis: 100%; }
  .home-featured .spot-grid {
    display: flex; overflow-x: auto; gap: 10px; padding: 0 1px 9px;
    scroll-snap-type: x mandatory; scroll-padding-left: 1px; -webkit-overflow-scrolling: touch;
  }
  .home-featured .spot-card { flex: 0 0 min(85vw, 330px); scroll-snap-align: start; }
  /* Keep all top-three vote leaders visible; never hide #2/#3 behind a carousel. */
  .home-top-picks-grid { grid-template-columns: 1fr; gap: 6px; }
  .home-top-pick { min-height: 49px; padding: 8px 12px; }
  .home-worlds { padding-top: 4px; padding-bottom: 13px; }
  .home-worlds .world-grid { gap: 7px; }
  .home-worlds .world-tile { height: 78px; }
  .home-worlds .world-tile strong { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-worlds .world-tile-art { transition: none; }
  .home-worlds .world-tile:hover .world-tile-art { transform: none; }
  .home-featured .spot-grid { scroll-behavior: auto; }
}
