/* Homepage directory. Shared canvas and surface live in styles.css. */
.home-page .page-shell,
.home-page .site-footer {
  --text: #eee8dd;
  --muted: #bdb5a8;
  --ash: #aaa294;
  --gold: #bc9c67;
  --gold-soft: #dfc390;
  --line: rgba(207, 184, 144, .22);
  --home-line-strong: rgba(207, 184, 144, .36);
  --home-line-soft: rgba(238, 232, 221, .08);
  color: var(--text);
}
.home-page .home-hero { min-height: 0; padding: 0 var(--surface-inset); }
.home-page .countdown-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  justify-items: stretch;
  gap: 0;
  width: 100%;
  min-height: 54px;
  margin: 0;
  padding: 9px 0;
  border: 0;
  background-image: linear-gradient(90deg, var(--surface-color), rgba(10, 5, 2, .78) 30%, rgba(10, 5, 2, .78) 70%, var(--surface-color)), url("./assets/diablo-boss-hero.png");
  background-position: center, center 47%;
  background-size: cover, max(110%, 858px) auto;
  background-repeat: no-repeat;
}
.home-page .countdown-stage__main { grid-column: 2; display: flex; align-items: center; gap: 14px; text-shadow: 0 1px 3px #000; }
.home-page .countdown-stage__label { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 12px; line-height: 1.5; white-space: nowrap; }
.home-page .countdown-stage__label strong { color: #ffb078; font-size: 12px; font-weight: 500; letter-spacing: 0; }
.home-page #season-status { color: #f8a350; font-size: 11px; }
.home-page .countdown-clock { flex-wrap: nowrap; align-items: baseline; justify-content: center; gap: 12px; min-width: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.home-page .countdown-clock span { display: inline-flex; align-items: baseline; gap: 3px; font-size: 11px; color: #efa568; }
.home-page .countdown-clock strong { color: #ff963f; font: 600 22px/1.15 var(--font-body); text-shadow: 0 1px 3px #000, 0 0 12px rgba(240, 101, 16, .24); }
.home-page .countdown-clock__plus { color: #f6a24b; align-self: center; margin: 0; font-size: 15px; line-height: 1; }
.home-page .countdown-clock__plus[hidden] { display: none; }
.home-season-note { grid-column: 3; display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin: 0; color: var(--ash); font-size: 11px; white-space: nowrap; }
.home-season-note a { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 32px; color: var(--muted); font-size: 12px; }
.home-content { width: min(var(--content-max), calc(100% - 48px)); margin: 0 auto; padding: 0 var(--surface-inset) 24px; }
.home-index { display: flex; flex-wrap: wrap; gap: 0 28px; border-top: 1px solid var(--home-line-strong); border-bottom: 1px solid var(--home-line-soft); }
.home-index a { display: flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 13px; border-bottom: 2px solid transparent; }
.home-index a:hover { color: var(--text); border-bottom-color: var(--gold); }
.home-section { min-width: 0; padding: 26px 0; scroll-margin-top: 20px; }
.home-section-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 18px; }
.home-content h2 { margin: 0; color: var(--text); font: 600 20px/1.45 var(--font-display); letter-spacing: -.025em; }
.home-section-heading > p { margin: 0; color: var(--ash); font-size: 12px; }
.home-content h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0; color: var(--text); font: 500 15px/1.6 var(--font-body); word-break: keep-all; overflow-wrap: anywhere; }
.home-content h3 span[aria-hidden] { flex-shrink: 0; color: var(--ash); font: 400 16px/1 var(--font-body); }
.home-content h3 small { color: var(--ash); font: 400 11px/1.6 var(--font-body); }
.home-more { display: inline-flex; align-items: center; gap: 8px; min-height: 30px; color: var(--muted); font-size: 12px; }
.home-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.home-feature { min-width: 0; }
.home-feature__link { display: block; }
.home-feature__art { position: relative; height: 142px; margin-bottom: 14px; overflow: hidden; background: #1c1a16; }
.home-feature__art::after { content: ''; position: absolute; inset: 0; border: 1px solid rgba(238,232,221,.06); pointer-events: none; }
.home-feature__art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 48%; transition: filter .18s ease; }
.home-feature__link:hover img { filter: brightness(1.12); }
.home-feature h3 { font-size: 17px; font-weight: 600; }
.home-feature p, .home-tool > p { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.8; word-break: keep-all; overflow-wrap: anywhere; }
.home-text-links { display: flex; flex-wrap: wrap; gap: 0 18px; margin-top: 9px; }
.home-text-links a { display: flex; align-items: center; min-height: 32px; color: var(--gold-soft); font-size: 12px; }
.home-guide-columns, .home-reading { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; border-top: 1px solid var(--home-line-strong); }
.home-directory { margin: 0; padding: 0; list-style: none; }
.home-directory li + li { border-top: 1px solid var(--home-line-soft); }
.home-directory li > a { display: block; padding: 12px 0; }
.home-directory li:first-child > a { padding-top: 0; }
.home-directory p { margin: 3px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; word-break: keep-all; overflow-wrap: anywhere; }
.home-directory a:hover h3, .home-feature__link:hover h3, .home-tool h3 a:hover { color: var(--gold-soft); }
.home-content a:focus-visible, .home-hero a:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 4px; border-radius: 2px; }
.home-text-links a:hover, .home-more:hover, .home-season-note a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
#home-tools { border-top: 1px solid var(--home-line-strong); }
.home-tools { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; }
.home-tool h3 a { display: flex; justify-content: space-between; gap: 12px; width: 100%; }
.home-tool .home-more { margin-top: 9px; color: var(--gold-soft); }
.home-reading { grid-template-columns: 1.25fr 1fr; }
.home-page .home-tip-list { display: grid; gap: 0; margin: 0; padding: 0; }
.home-page .home-tip-card { display: flex; align-items: center; min-height: 44px; padding: 9px 0; border: 0; border-bottom: 1px solid var(--home-line-soft); border-radius: 0; background: none; color: var(--muted); font-size: 13px; font-weight: 400; line-height: 1.6; box-shadow: none; transform: none; }
.home-page .home-tip-card::before { display: none; }
.home-page .home-tip-card::after { content: '↗'; margin-left: auto; padding-left: 16px; color: var(--ash); }
.home-page .home-tip-card:hover { color: var(--gold-soft); background: none; }
.home-fallback { color: var(--muted); font-size: 13px; }
.home-fallback a { text-decoration: underline; }
#recommended { border-top: 1px solid var(--home-line-strong); }
.home-videos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.home-video { min-width: 0; }
.home-video__thumb { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: #1c1a16; }
.home-video__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.home-video__thumb span { position: absolute; right: 8px; bottom: 8px; display: grid; place-items: center; width: 26px; height: 26px; background: rgba(20,19,16,.85); color: #eee8dd; font-size: 11px; }
.home-video strong { display: -webkit-box; margin-top: 9px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; color: var(--text); font-size: 12px; font-weight: 500; line-height: 1.65; }
.home-video p { margin: 4px 0 0; color: var(--ash); font-size: 11px; }
.home-video:hover strong { color: var(--gold-soft); }
.home-page .home-content .random-tip-banner-host[data-variant="sticky"] { position: static; width: 100%; margin: 0; padding: 0; }
.home-page .home-content .random-tip-banner { background: none; border-color: var(--line); border-radius: 0; box-shadow: none; }
.home-page .home-content .random-tip-banner__text { color: var(--muted); }
@media (max-width: 900px) {
  .home-season-start { display: none; }
  .home-features { gap: 20px; }
  .home-guide-columns, .home-reading, .home-tools { gap: 28px; }
}
@media (max-width: 760px) {
  .home-season-start, .home-page #season-status { display: none; }
  .home-page .countdown-stage__main { gap: 10px; }
  .home-content { width: calc(100% - 40px); }
  .home-page > .page-jump { position: static; inset: auto; display: flex; justify-content: center; width: auto; margin: 0 20px 20px; }
  .home-features { grid-template-columns: 1fr; gap: 22px; }
  .home-feature { position: relative; padding-left: 162px; min-height: 120px; }
  .home-feature__art { position: absolute; top: 0; left: 0; width: 142px; height: 120px; margin: 0; }
  .home-feature__art img { object-fit: cover; }
  .home-feature h3 { font-size: 16px; }
  .home-feature p { font-size: 12px; }
  .home-text-links { column-gap: 16px; margin-top: 6px; }
  .home-guide-columns, .home-reading, .home-tools { grid-template-columns: 1fr; gap: 0; }
  .home-guide-columns > section + section, .home-reading > section + section { border-top: 1px solid var(--home-line-strong); }
  .home-tool + .home-tool { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--home-line-soft); }
  .home-videos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .home-page .countdown-stage { min-height: 46px; padding-block: 6px; }
  .home-page .countdown-stage__main { gap: 7px; }
  .home-page .countdown-stage__label strong { font-size: 11px; }
  .home-page .countdown-clock { gap: 5px; }
  .home-page .countdown-clock span { gap: 2px; font-size: 9px; }
  .home-page .countdown-clock strong { font-size: clamp(14px, 4.4vw, 19px); }
  .home-page .countdown-clock__plus { font-size: 12px; }
  .home-season-note a { min-width: 28px; font-size: 11px; }
  .home-patch-label__detail { display: none; }
  .home-content { width: calc(100% - 32px); }
  .home-index { justify-content: space-between; gap: 0 12px; }
  .home-index a { font-size: 12px; }
  .home-section { padding: 22px 0; }
  .home-section-heading { gap: 6px 12px; margin-bottom: 16px; }
  .home-section-heading > p { font-size: 11px; }
  .home-content h2 { font-size: 18px; }
  .home-feature { padding-left: 104px; min-height: 112px; }
  .home-feature__art { width: 88px; height: 104px; }
  .home-feature h3 { font-size: 15px; }
  .home-feature p { line-height: 1.7; }
  .home-text-links { gap: 0 14px; }
  .home-content h3 { font-size: 14px; }
  .home-videos { gap: 18px 14px; }
}
@media (max-width: 360px) {
  .home-page .countdown-stage__main { gap: 5px; }
  .home-page .countdown-clock { gap: 3px; }
  .home-patch-label { display: none; }
  .home-season-note a { min-width: 24px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-feature__art img { transition: none; }
}
