.home-forecast {
    --hf-from: #aa234b;
    --hf-to: #611b70;
    --hf-mark: #ffbd74;
    --hf-surface: #fffdfb;
    --hf-soft: #fbf1e7;
    --hf-line: #ecd5c2;
    --hf-warm-row: #ffc677;
    --hf-warm-hover: #ffb85a;
    --hf-warm-strong: #812735;
    --hf-warm-period-ink: #fff8e7;
    --hf-warm-label: #592615;
    --hf-warm-value: #672b15;
    --hf-warm-value-bg: #ffe4b7;
    --hf-cool-row: #8cdfee;
    --hf-cool-hover: #71d3e7;
    --hf-cool-strong: #064464;
    --hf-cool-period-ink: #e5fcff;
    --hf-cool-label: #153f5c;
    --hf-cool-value: #103c61;
    --hf-cool-value-bg: #ccf2ff;
    --hf-page-main: var(--hf-from);
    --hf-page-main-ink: #fff;
    --hf-hit: #126142;
    --hf-hit-bg: #d9f8e7;
    --hf-miss: #9d2338;
    --hf-miss-bg: #ffe6ea;
    --hf-wait: #4b5464;
    --hf-wait-bg: #edf0f5;
    --hf-check: #774507;
    --hf-check-bg: #fff0cc;
    --hf-inset: clamp(12px, 2.4vw, 26px);
    --hf-period-column: clamp(117px, 12vw, 143px);
    --hf-status-column: 55px;
    --hf-detail-column: 81px;
    --hf-actions-gap: 7px;
    --hf-result-column: calc(var(--hf-status-column) + var(--hf-detail-column) + var(--hf-actions-gap));
    min-width: 0;
    border: 1px solid var(--hf-line);
    border-radius: 14px;
    background: var(--hf-surface);
    box-shadow: var(--pub-shadow);
    scroll-margin-block-start: 6px;
}

.home-forecast[data-region='am'] {
    --hf-from: #006e56;
    --hf-to: #164873;
    --hf-mark: #a9ffd3;
}

.home-forecast[data-region='xg'] {
    --hf-from: #234fb2;
    --hf-to: #512170;
    --hf-mark: #9be6ff;
}

:root[data-theme='dark'] .home-forecast {
    --hf-surface: #211916;
    --hf-soft: #2b201a;
    --hf-line: #4f3a33;
    --hf-warm-row: #612b56;
    --hf-warm-hover: #723465;
    --hf-warm-strong: #f8a7d6;
    --hf-warm-period-ink: #3e172f;
    --hf-warm-label: #ffd2e7;
    --hf-warm-value: #fff0f7;
    --hf-warm-value-bg: #794165;
    --hf-cool-row: #105461;
    --hf-cool-hover: #126673;
    --hf-cool-strong: #86edeb;
    --hf-cool-period-ink: #0e343c;
    --hf-cool-label: #caf8f7;
    --hf-cool-value: #ddfdff;
    --hf-cool-value-bg: #1b6a79;
    --hf-page-main: #ffcb81;
    --hf-page-main-ink: #271a0c;
    --hf-hit: #a1efc7;
    --hf-hit-bg: #143a31;
    --hf-miss: #ffbfc8;
    --hf-miss-bg: #492731;
    --hf-wait: #d3d8e1;
    --hf-wait-bg: #30303a;
    --hf-check: #ffdb93;
    --hf-check-bg: #42301a;
}

.home-forecast,
.fv-detail-shell[data-forecast-tone='cool'] .fv-poem {
    --hf-row: var(--hf-warm-row);
    --hf-row-hover: var(--hf-warm-hover);
    --hf-tone-strong: var(--hf-warm-strong);
    --hf-period-ink: var(--hf-warm-period-ink);
    --hf-label: var(--hf-warm-label);
    --hf-value: var(--hf-warm-value);
    --hf-value-bg: var(--hf-warm-value-bg);
}

.home-forecast-list li:nth-child(even),
.fv-detail-shell[data-forecast-tone='cool'],
.fv-detail-shell:not([data-forecast-tone='cool']) .fv-poem {
    --hf-row: var(--hf-cool-row);
    --hf-row-hover: var(--hf-cool-hover);
    --hf-tone-strong: var(--hf-cool-strong);
    --hf-period-ink: var(--hf-cool-period-ink);
    --hf-label: var(--hf-cool-label);
    --hf-value: var(--hf-cool-value);
    --hf-value-bg: var(--hf-cool-value-bg);
}

.home-forecast-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px 16px;
    padding: clamp(8px, 1.25vw, 13px) var(--hf-inset);
    border-radius: 13px 13px 0 0;
    border-bottom: 3px solid var(--hf-mark);
    color: #fff;
    background: radial-gradient(ellipse at 88% 20%, rgb(255 255 255 / 8%), transparent 52%),
        linear-gradient(110deg, var(--hf-from), var(--hf-to));
}

.home-forecast-head > div { min-width: 0; }

.home-forecast-head :is(h1, h2) {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: clamp(1.19rem, 2.25vw, 1.55rem);
    font-weight: 820;
    line-height: 1.18;
}

.home-forecast-head :is(h1, h2)::before {
    content: '';
    inline-size: 5px;
    block-size: .9em;
    flex: 0 0 auto;
    border-radius: 4px;
    background: var(--hf-mark);
}

.home-forecast-head p { margin-block-start: 6px; font-size: .82rem; line-height: 1.55; }

.home-forecast-region {
    flex: 0 0 auto;
    padding: 4px 11px;
    border: 1px solid rgb(255 255 255 / 55%);
    border-radius: 999px;
    color: #fff;
    font-size: .83rem;
    font-weight: 750;
    line-height: 1.5;
}

.home-index {
    --hf-main-header-height: 68px;
    --hf-shortcuts-height: 109px;
    scroll-padding-top: calc(var(--hf-main-header-height) + 6px);
    scroll-behavior: smooth;
}

.home-index .home-forecast-block,
.home-index .home-forecast-extra-group,
.home-index .home-forecast-disclosure,
.home-index .home-forecast-inline-gallery,
.home-index .home-forecast-directory a,
.home-index [data-forecast-issue] {
    scroll-margin-top: calc(var(--hf-shortcuts-height) + 6px);
}

@media (prefers-reduced-motion: reduce) {
    .home-index { scroll-behavior: auto; }
}

@media (max-width: 900px) {
    .home-index { --hf-main-header-height: 94px; }
}

.home-forecast-overview { overflow: visible; }

.home-forecast-shortcuts {
    position: sticky;
    top: var(--hf-main-header-height);
    z-index: 4;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border-block: 1px solid #dc4557;
    background: #ba2035;
    box-shadow: 0 4px 9px #500c1829;
}

.public-site .home-forecast-shortcuts a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 36px;
    padding: 5px 2px;
    border-right: 1px solid #ffffff1c;
    border-bottom: 1px solid #ffffff1c;
    color: #fff;
    font-size: .91rem;
    font-size: clamp(.68rem, 3.1vw, .91rem);
    font-weight: 760;
    line-height: 1.25;
    text-align: center;
    white-space: nowrap;
}

.public-site .home-forecast-shortcuts a:nth-child(5n) { border-right: 0; }
.public-site .home-forecast-shortcuts a:nth-child(n+11) { border-bottom: 0; }
.public-site .home-forecast-shortcuts a:hover { background: #a91b30; }
.public-site .home-forecast-shortcuts a[aria-current] {
    background: #8d1328;
    color: #fff1a9;
    box-shadow: inset 0 -2px #f6db85;
}
.public-site .home-forecast-shortcuts a:focus-visible {
    outline: 2px solid #fff1a9;
    outline-offset: -3px;
}
.home-forecast-block-head a:focus-visible {
    outline: 3px solid var(--pub-focus);
    outline-offset: 2px;
}

.home-forecast-sections { padding: 4px var(--hf-inset) var(--hf-inset); }
.home-forecast-sections[hidden] { display: none; }

.home-forecast-block {
    border: 1px solid var(--hf-line);
    border-radius: 13px;
    background: var(--hf-soft);
}

.home-forecast-block + .home-forecast-block { margin-top: 13px; }
.home-forecast-block:target { border-color: #20926c; }

.home-forecast-block-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 9px var(--hf-inset);
}

.home-forecast-block-head h3,
.home-forecast-block-head h4 { margin: 0; color: var(--pub-ink); font-size: 1rem; }
.home-forecast-block-head a { color: var(--pub-ink); font-size: .76rem; white-space: nowrap; }
.home-forecast-block-head a:hover { text-decoration: underline; }

.home-forecast-overview .home-forecast-row { min-height: 37px; padding-block: 4px; }
.home-forecast-overview .home-forecast-detail-action { min-height: 25px; }
.home-forecast-overview .home-forecast-columns { padding-block: 4px; }
.home-forecast-overview .home-forecast-values {
    display: inline;
    color: var(--hf-value);
    font-size: .86rem;
    font-weight: 740;
    font-variant-numeric: tabular-nums;
    line-height: 1.4;
    overflow-wrap: anywhere;
    word-spacing: .19em;
}
.home-forecast-overview .home-forecast-values > span { padding-inline: 2px; line-height: inherit; }
.home-forecast-row-plain:hover { background: var(--hf-row); }
.home-forecast-row-plain:hover .home-forecast-period { text-decoration: none; }
.home-forecast-row-plain .home-forecast-actions { display: flex; }
.home-forecast-overview .home-forecast-group .home-forecast-badge { min-width: 0; padding: 0 5px; font-size: .71rem; }

.home-forecast-extra-group { margin-top: 24px; }
.home-forecast-extra-group > h3 {
    margin: 0 0 9px;
    padding: 5px 10px;
    border-left: 4px solid #35b483;
    background: var(--hf-soft);
    color: var(--pub-ink);
    font-size: 1.05rem;
}
.home-forecast-disclosure {
    margin-block: 4px;
    border: 1px solid var(--hf-line);
    border-radius: 7px;
    overflow: hidden;
    background: var(--hf-soft);
}
.home-forecast-disclosure summary {
    padding: 5px 12px;
    cursor: pointer;
    font-weight: 730;
}
.home-forecast-disclosure summary:hover { color: var(--pub-accent); }
.home-forecast-disclosure summary:focus-visible { outline-offset: -3px; }
.home-forecast-lookup h4 { margin: 2px 12px; color: var(--pub-ink); font-size: .84rem; }
.home-forecast-lookup dl { display: flex; flex-wrap: wrap; gap: 3px 6px; margin: 0 12px 8px; }
.home-forecast-lookup dl div {
    display: flex;
    gap: 3px;
    max-width: 100%;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--hf-surface);
    color: var(--pub-ink);
    font-size: .82rem;
}
.home-forecast-lookup dt { flex: none; font-weight: 740; }
.home-forecast-lookup dd { margin: 0; font-variant-numeric: tabular-nums; }

.home-forecast-directory {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.public-site .home-forecast-directory a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 36px;
    padding: 4px 8px;
    border: 1px solid var(--hf-line);
    border-radius: 5px;
    background: var(--hf-soft);
    color: var(--pub-ink);
    font-size: .87rem;
    font-weight: 730;
}
.public-site .home-forecast-directory a:hover,
.public-site .home-forecast-directory a:target { border-color: #20926c; }

.home-forecast-plan-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 5px 12px;
    padding: 5px var(--hf-inset);
    background: var(--hf-row);
    color: var(--hf-label);
    font-size: .82rem;
}
.home-forecast-plan .home-forecast-list > li:last-child .home-forecast-plan-row { border-radius: 0 0 12px 12px; }
.home-forecast-plan-overall,
.home-forecast-plan-slots,
.home-forecast-plan-slots > li { display: flex; align-items: center; gap: 4px; }
.home-forecast-plan-overall { font-weight: 740; }
.home-forecast-plan-slots {
    flex: 1 0 100%;
    flex-wrap: wrap;
    gap: 3px 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.home-forecast-plan-slots > li:nth-child(n) { border: 0; }
.home-forecast-plan-special { font-variant-numeric: tabular-nums; }
.home-forecast-plan-slots .home-forecast-badge { min-width: 0; padding: 1px 4px; font-size: .72rem; }
.home-forecast-badge[data-status='count'] { background: var(--hf-value-bg); color: var(--hf-value); }

.home-forecast-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 4px 9px 9px;
    list-style: none;
}
.home-forecast-gallery-grid li {
    overflow: hidden;
    border: 1px solid var(--hf-line);
    border-radius: 6px;
    background: var(--hf-surface);
    text-align: center;
    font-size: .8rem;
}
.home-forecast-gallery-grid a { display: block; }
.home-forecast-gallery-grid a:focus-visible { outline-offset: -3px; }
.home-forecast-gallery-grid img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: contain;
    background: var(--hf-soft);
}
.home-forecast-gallery-grid img:not([src]) { display: none; }
.home-forecast-gallery-grid li span { display: inline-block; padding: 4px; }

.home-forecast-outcome {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
}

.home-forecast-result {
    color: var(--hf-label);
    font-size: .72rem;
    font-variant-numeric: tabular-nums;
    line-height: 1.3;
    white-space: nowrap;
}

@media (max-width: 620px) {
    .home-forecast-sections { padding-inline: 5px; }
    .home-forecast-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}



.home-forecast-categories {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1px clamp(3px, .4vw, 6px);
    padding: 6px var(--hf-inset);
    background: var(--hf-soft);
}

.public-site .home-forecast-categories a {
    --hf-button-accent: #9b224b;
    --hf-button-dot-light: #ff849c;
    --hf-button-dot: var(--hf-button-accent);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 34px;
    padding-inline: 5px;
    border-radius: 6px;
    color: var(--pub-ink);
    font-size: .82rem;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
}

.home-forecast-categories a:nth-child(7n+2) { --hf-button-accent: #81500d; --hf-button-dot-light: #ffca74; }
.home-forecast-categories a:nth-child(7n+3) { --hf-button-accent: #0b6b53; --hf-button-dot-light: #72dcb2; }
.home-forecast-categories a:nth-child(7n+4) { --hf-button-accent: #0c6181; --hf-button-dot-light: #72d2f2; }
.home-forecast-categories a:nth-child(7n+5) { --hf-button-accent: #3546a4; --hf-button-dot-light: #9cabff; }
.home-forecast-categories a:nth-child(7n+6) { --hf-button-accent: #733298; --hf-button-dot-light: #cfa0ff; }
.home-forecast-categories a:nth-child(7n+7) { --hf-button-accent: #95306c; --hf-button-dot-light: #fca2db; }

:root[data-theme='dark'] .home-forecast-categories a { --hf-button-dot: var(--hf-button-dot-light); }

.home-forecast-categories a::before {
    content: '';
    inline-size: 5px;
    block-size: 5px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--hf-button-dot);
}

.public-site .home-forecast-categories a:hover { text-decoration: underline; text-underline-offset: 3px; }
.public-site .home-forecast-categories a[aria-current] {
    background: var(--hf-button-accent);
    color: #fff;
}

.home-forecast-categories a[aria-current]::before { background: currentColor; }

.home-forecast-categories a:focus-visible,
.home-forecast-pages a:focus-visible,
.home-forecast-row:focus-visible {
    position: relative;
    z-index: 1;
    outline: 3px solid var(--pub-focus);
    outline-offset: 2px;
}

.home-forecast .home-forecast-message { padding: 19px var(--hf-inset); color: var(--pub-muted); }

.home-forecast-columns,
.home-forecast-row {
    display: grid;
    grid-template-columns: var(--hf-period-column) minmax(0, 1fr) var(--hf-result-column);
    align-items: center;
    column-gap: 12px;
    padding-inline: var(--hf-inset);
}

.home-forecast-columns {
    padding-block: 8px;
    border-block: 1px solid var(--hf-line);
    background: var(--hf-soft);
    color: var(--pub-muted);
    font-size: .79rem;
    font-weight: 750;
}

.home-forecast-columns > :last-child { inline-size: var(--hf-status-column); text-align: center; }
.home-forecast-list { margin: 0; padding: 0; list-style-type: none; }
.home-forecast-list li + li { border-block-start: 1px solid var(--hf-line); }

.home-forecast-row { min-height: 44px; padding-block: 6px; background: var(--hf-row); }
.home-forecast-row:hover { background: var(--hf-row-hover); }
.home-forecast-row:focus-visible { outline-offset: -3px; }
.home-forecast-list li:last-child .home-forecast-row { border-radius: 0 0 13px 13px; }
.home-forecast-list:has(+ .home-forecast-pages:not([hidden])) li:last-child .home-forecast-row { border-radius: 0; }

.home-forecast-period {
    justify-self: start;
    max-width: 100%;
    padding: 3px 7px;
    border-radius: 5px;
    background: var(--hf-tone-strong);
    color: var(--hf-period-ink);
    font-size: .89rem;
    font-weight: 820;
    font-variant-numeric: tabular-nums;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.home-forecast-row:hover .home-forecast-period { text-decoration: underline; text-underline-offset: 3px; }

.home-forecast-pick,
.home-forecast-group,
.home-forecast-values {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    min-width: 0;
}

.home-forecast-pick { gap: 6px 13px; }
.home-forecast-group { gap: 4px 6px; }
.home-forecast-group b { color: var(--hf-label); font-size: .76rem; line-height: 1.35; }
.home-forecast-values { gap: 4px; }
.home-forecast-values > span {
    min-width: 1.8em;
    padding: 1px 4px;
    border-radius: 4px;
    background: var(--hf-value-bg);
    color: var(--hf-value);
    font-size: .82rem;
    font-weight: 740;
    font-variant-numeric: tabular-nums;
    line-height: 1.55;
    text-align: center;
    overflow-wrap: anywhere;
}

.home-forecast-values > [data-match='1'] {
    background: var(--hf-hit-bg);
    color: var(--hf-hit);
    box-shadow: inset 0 0 0 1px currentColor;
}

.home-forecast-actions {
    display: grid;
    grid-template-columns: var(--hf-status-column) var(--hf-detail-column);
    align-items: center;
    column-gap: var(--hf-actions-gap);
    justify-self: end;
}

.home-forecast-badge {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 3.05rem;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--hf-wait-bg);
    color: var(--hf-wait);
    font-size: .77rem;
    font-weight: 780;
    line-height: 1.5;
    text-align: center;
    white-space: nowrap;
}

.home-forecast-badge svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-forecast-badge[data-status='hit'] { background: var(--hf-hit-bg); color: var(--hf-hit); }
.home-forecast-badge[data-status='miss'] { background: var(--hf-miss-bg); color: var(--hf-miss); }
.home-forecast-badge[data-status='checking'] { background: var(--hf-check-bg); color: var(--hf-check); }
.home-forecast-actions .home-forecast-badge { justify-self: center; }

.home-forecast-detail-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 30px;
    padding: 2px 5px;
    border: 1px solid var(--hf-tone-strong);
    border-radius: 6px;
    background: var(--hf-value-bg);
    color: var(--hf-value);
    font-size: .77rem;
    font-weight: 790;
    line-height: 1.3;
    white-space: nowrap;
}

.home-forecast-detail-action::after {
    content: '';
    flex: 0 0 5px;
    block-size: 5px;
    border-block-start: 1.5px solid currentColor;
    border-inline-end: 1.5px solid currentColor;
    transform: rotate(45deg);
}

.home-forecast-row:is(:hover, :focus-visible) .home-forecast-detail-action {
    background: var(--hf-tone-strong);
    color: var(--hf-period-ink);
}

.home-forecast-pages {
    display: grid;
    grid-template-columns: minmax(0, 94px) auto minmax(0, 94px);
    justify-content: center;
    align-items: center;
    gap: clamp(5px, 2vw, 12px);
    padding: 11px var(--hf-inset);
    border-block-start: 1px solid var(--hf-line);
    border-radius: 0 0 13px 13px;
    background: var(--hf-soft);
}

.public-site .home-forecast-pages a {
    display: grid;
    grid-row: 1;
    place-items: center;
    min-height: 44px;
    padding: 4px;
    border: 1px solid currentColor;
    border-radius: 7px;
    background: var(--hf-surface);
    color: var(--pub-accent);
    font-size: .84rem;
    font-weight: 750;
    line-height: 1.3;
    text-align: center;
}

.home-forecast-pages [data-forecast-prev] { grid-column: 1; }
.home-forecast-pages [data-forecast-page-label] {
    grid-column: 2;
    grid-row: 1;
    color: var(--pub-ink);
    font-size: .82rem;
    font-weight: 720;
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.public-site .home-forecast-pages [data-forecast-next] {
    grid-column: 3;
    border-color: transparent;
    background: var(--hf-page-main);
    color: var(--hf-page-main-ink);
}

.public-site .home-forecast-pages a[href]:hover { text-decoration: underline; text-underline-offset: 3px; }
.public-site .home-forecast-pages a:is(:not([href]), [aria-disabled='true']) {
    border-color: var(--hf-line);
    background: var(--hf-soft);
    color: var(--pub-muted);
    pointer-events: none;
}

body.public-site.fv-site { background: var(--pub-bg); }

.fv-detail-shell .fv-issue-summary,
.fv-detail-shell > .fv-empty {
    margin: 0;
    padding: 12px var(--hf-inset);
    border: 0;
    border-radius: 0;
    background: var(--hf-surface);
    box-shadow: none;
}

.fv-detail-shell .fv-issue-summary { background: var(--hf-row); }
.fv-detail-shell .fv-issue-summary .home-forecast-period {
    color: var(--hf-period-ink);
    font-size: clamp(1rem, 2.1vw, 1.36rem);
}
.fv-detail-shell .fv-issue-meta { color: var(--hf-label); }
.fv-detail-shell .fv-issue-actions { border-color: var(--hf-line); }

.public-site .fv-detail-shell .fv-issue-actions a {
    display: inline-flex;
    align-items: center;
    float: none;
    min-height: 36px;
    border-color: var(--hf-line);
    background: var(--hf-soft);
    color: var(--pub-accent);
}

.fv-detail-shell .fv-issue-summary .fv-issue-actions a {
    background: var(--hf-value-bg);
    color: var(--hf-value);
}

.public-site .fv-detail-shell .fv-issue-actions a:hover {
    border-color: currentColor;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.fv-detail-shell > .home-forecast-categories { border-block: 1px solid var(--hf-line); }

.fv-detail-shell .fv-result .pub-ball {
    width: min(100%, 42px);
    aspect-ratio: 5 / 4;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    font-size: clamp(.78rem, 2.65vw, 1.16rem);
}

.fv-detail-shell .fv-result .pub-ball[data-wave='red'] { background: #d60000; }
.fv-detail-shell .fv-result .pub-ball[data-wave='blue'] { background: #1616ef; }
.fv-detail-shell .fv-result .pub-ball[data-wave='green'] { background: #007e00; }
.fv-detail-shell .fv-result-ball { color: var(--hf-label); }
.fv-detail-shell .fv-result-ball--special { color: var(--hf-tone-strong); }
.fv-detail-shell .fv-result-ball--special .pub-ball { outline-color: var(--pub-special); }

.fv-detail-shell .fv-detail {
    gap: clamp(10px, 1.4vw, 17px);
    padding: clamp(12px, 2.1vw, 22px) var(--hf-inset);
    scroll-margin-block-start: 7px;
}

.fv-detail-shell .fv-detail-copy { gap: clamp(10px, 1.4vw, 17px); }
.fv-detail-shell .fv-detail-copy .fv-panel {
    padding: clamp(13px, 2vw, 21px);
    border: 1px solid var(--hf-line);
    background: var(--hf-row);
    color: var(--hf-label);
    box-shadow: none;
}

.fv-detail-shell .fv-detail-copy h2 { color: var(--hf-tone-strong); }
.fv-detail-shell :is(.fv-rule, .fv-groups dt, .fv-clues dt, .fv-poem .fv-empty) { color: var(--hf-label); }
.fv-detail-shell .fv-clues dd { color: var(--hf-tone-strong); }
.fv-detail-shell .fv-groups > div { border-color: var(--hf-line); }

.fv-detail-shell .fv-value {
    min-width: 2em;
    min-height: 29px;
    padding: 3px 6px;
    border: 0;
    border-radius: 4px;
    background: var(--hf-value-bg);
    color: var(--hf-value);
    overflow-wrap: anywhere;
}

.fv-detail-shell .fv-value--matched,
.fv-detail-shell .fv-label--hit { background: var(--hf-hit-bg); color: var(--hf-hit); }
.fv-detail-shell .fv-value--matched { box-shadow: inset 0 0 0 1px currentColor; }
.fv-detail-shell .fv-label--miss { background: var(--hf-miss-bg); color: var(--hf-miss); }

.fv-site .fv-detail-shell .fv-poem-text {
    border-color: var(--hf-tone-strong);
    border-radius: 0 6px 6px 0;
    background: var(--hf-value-bg);
    color: var(--hf-value);
}

.fv-detail-shell .fv-illustration { border: 1px solid var(--hf-line); box-shadow: none; }

@media (max-width: 670px) {
    .home-forecast-categories { padding-inline: 9px; }
    .public-site .home-forecast-categories a { padding-inline: 3px; font-size: .76rem; }
    .home-forecast-columns { display: none; }
    .home-forecast-row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 8px; }
    .home-forecast-pick { grid-column: 1 / -1; grid-row: 2; }
    .home-forecast-actions, .home-forecast-row > .home-forecast-badge { grid-column: 2; grid-row: 1; }
    .home-forecast-list { border-block-start: 1px solid var(--hf-line); }
}

@media (max-width: 390px) {
    .home-forecast-head { gap: 6px; }
    .home-forecast-list { --hf-detail-column: 71px; --hf-actions-gap: 5px; }
    .home-forecast-row { column-gap: 5px; }
    .home-forecast-detail-action { font-size: .75rem; }
}

@media (max-width: 319px) {
    .home-forecast-row .home-forecast-period { padding-inline: 4px; font-size: .76rem; }
}

@media (max-width: 300px) {
    .home-forecast-list { --hf-inset: 9px; }
}

.home-forecast-block[data-forecast-block],
.home-forecast-block[data-forecast-module='extended'] {
    --hf-section-accent: #692d4d;
    border-radius: 9px;
}

.home-forecast-block[data-forecast-block]:nth-of-type(4n + 2),
.home-forecast-block[data-forecast-module='extended']:nth-of-type(4n + 2) { --hf-section-accent: #245b4e; }
.home-forecast-block[data-forecast-block]:nth-of-type(4n + 3),
.home-forecast-block[data-forecast-module='extended']:nth-of-type(4n + 3) { --hf-section-accent: #384c73; }
.home-forecast-block[data-forecast-block]:nth-of-type(4n + 4),
.home-forecast-block[data-forecast-module='extended']:nth-of-type(4n + 4) { --hf-section-accent: #78491e; }

.home-forecast-block[data-forecast-block] > .home-forecast-block-head,
.home-forecast-block[data-forecast-module='extended'] > .home-forecast-block-head {
    min-height: 42px;
    padding-block: 6px;
    border-radius: 8px 8px 0 0;
    background: var(--hf-section-accent);
    color: #fffaf4;
}

.home-forecast-block[data-forecast-block] > .home-forecast-block-head h3,
.home-forecast-block[data-forecast-module='extended'] > .home-forecast-block-head h3 {
    color: inherit;
    font-size: clamp(1rem, 2.7vw, 1.13rem);
    font-weight: 800;
    line-height: 1.3;
}

.home-forecast-block[data-forecast-block] > .home-forecast-block-head a,
.home-forecast-block[data-forecast-module='extended'] > .home-forecast-block-head a { color: inherit; }

.home-forecast-records,
.home-forecast-plan {
    --hf-record-row: #fbf6f1;
    --hf-record-row-alt: #edf5f3;
    --hf-record-hover: #eee8f1;
    --hf-record-rule: #d8d3df;
    --hf-record-period: #713952;
    --hf-record-ink: #253351;
    --hf-record-caption: #5f546d;
    --hf-wave-red: #9f2240;
    --hf-wave-blue: #254eaa;
    --hf-wave-green: #14654d;
}

:root[data-theme='dark'] .home-forecast-records,
:root[data-theme='dark'] .home-forecast-plan {
    --hf-record-row: #29232e;
    --hf-record-row-alt: #1e2b2f;
    --hf-record-hover: #382f44;
    --hf-record-rule: #514655;
    --hf-record-period: #f2bcab;
    --hf-record-ink: #fff1da;
    --hf-record-caption: #dcd1e6;
    --hf-wave-red: #ffa6b3;
    --hf-wave-blue: #acccff;
    --hf-wave-green: #99e9ca;
}

.home-forecast-records .home-forecast-columns,
.home-forecast-records .home-forecast-row {
    grid-template-columns: minmax(116px, 149px) minmax(0, 1fr) auto;
    column-gap: clamp(8px, 2vw, 21px);
}

.home-forecast-records .home-forecast-columns,
.home-forecast-records .home-forecast-list > li + li { border-color: var(--hf-record-rule); }
.home-forecast-records .home-forecast-columns { color: var(--hf-record-caption); }

.home-forecast-records .home-forecast-row {
    min-height: 41px;
    padding-block: 5px;
    border-radius: 0;
    background: var(--hf-record-row);
}
.home-forecast-records li:nth-child(even) .home-forecast-row { background: var(--hf-record-row-alt); }
.home-forecast-records .home-forecast-row:is(:hover, :focus-visible) { background: var(--hf-record-hover); }
.home-forecast-records .home-forecast-row-plain:hover { background: var(--hf-record-row); }
.home-forecast-records li:nth-child(even) .home-forecast-row-plain:hover { background: var(--hf-record-row-alt); }

.home-forecast-records .home-forecast-period {
    padding: 0;
    background: transparent;
    color: var(--hf-record-period);
    font-size: .88rem;
    font-weight: 780;
    letter-spacing: .014em;
}

.home-forecast-records .home-forecast-group b,
.home-forecast-records .home-forecast-result-label { color: var(--hf-record-caption); font-weight: 700; }
.home-forecast-records .home-forecast-group b[data-match] {
    border-radius: 3px;
    padding-inline: 3px;
    background: var(--hf-hit-bg);
    color: var(--hf-hit);
}
.home-forecast-records .home-forecast-values {
    color: var(--hf-record-ink);
    font-size: clamp(.86rem, 2.9vw, 1.02rem);
    font-weight: 770;
    line-height: 1.5;
    word-spacing: .2em;
}
.home-forecast-records .home-forecast-values > span:not([data-match]) {
    min-width: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    font-size: inherit;
}
.home-forecast-records .home-forecast-values > [data-match] { font-size: inherit; }
.home-forecast-values > span[data-wave='red']:not([data-match]) { color: var(--hf-wave-red, currentColor); }
.home-forecast-values > span[data-wave='blue']:not([data-match]) { color: var(--hf-wave-blue, currentColor); }
.home-forecast-values > span[data-wave='green']:not([data-match]) { color: var(--hf-wave-green, currentColor); }
.home-forecast-records .home-forecast-group[data-pick-kind='number'] .home-forecast-values { font-variant-numeric: tabular-nums; }
.home-forecast-records [data-layout='paired'] .home-forecast-pick,
.home-forecast-records [data-layout='tiers'] .home-forecast-pick {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px 10px;
}
.home-forecast-records [data-layout='stacked'] .home-forecast-pick {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1px;
}
.home-forecast-records [data-layout='numbers'] .home-forecast-group { width: 100%; }
.home-forecast-records [data-forecast-format='number-lines'] .home-forecast-pick { display: grid; gap: 0; }
.home-forecast-records [data-forecast-format='number-lines'] .home-forecast-values {
    max-inline-size: 36ch;
    font-family: ui-monospace, Menlo, Consolas, monospace;
    word-spacing: normal;
}
.home-forecast-records [data-forecast-format='head-tiers'] .home-forecast-pick {
    grid-template-rows: repeat(4, auto);
    grid-auto-flow: column;
}
.home-forecast-records [data-forecast-format='head-tiers'] .home-forecast-group:last-child { grid-area: 5 / 1 / auto / -1; }

.home-forecast-block.home-forecast-tier-panel[data-forecast-module='extended'] {
    --hf-section-accent: #142052;
    --hf-tier-surface: #fffdff;
    --hf-tier-caption: #edf1ff;
    --hf-tier-grid: #a978c3;
    --hf-tier-title: #ff86dc;
    --hf-tier-blue: #243f92;
    --hf-tier-label: #414156;
    --hf-tier-prediction: #c71934;
    --hf-tier-result: #25213a;
    --hf-tier-match: #ffe0bd;
}

:root[data-theme='dark'] .home-forecast-block.home-forecast-tier-panel[data-forecast-module='extended'] {
    --hf-section-accent: #171e47;
    --hf-tier-surface: #241e33;
    --hf-tier-caption: #252d50;
    --hf-tier-grid: #8a64ac;
    --hf-tier-blue: #b0c4ff;
    --hf-tier-label: #ddd5ef;
    --hf-tier-prediction: #ff8d9b;
    --hf-tier-result: #f5eafc;
    --hf-tier-match: #543246;
}

.home-forecast-block.home-forecast-tier-panel[data-forecast-module='extended'] > .home-forecast-block-head {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 4px;
    padding-block: clamp(12px, 2vw, 24px);
    border-bottom: 2px solid var(--hf-tier-grid);
}

.home-forecast-block.home-forecast-tier-panel[data-forecast-module='extended'] > .home-forecast-block-head h3 {
    grid-column: 2;
    color: var(--hf-tier-title);
    font-size: clamp(1.15rem, 3.3vw, 2.13rem);
    letter-spacing: .025em;
    text-align: center;
}

.home-forecast-tier-panel > .home-forecast-block-head a { justify-self: end; }
.home-forecast-tier-issues { margin: 0; padding: 0; list-style: none; }
.home-forecast-tier-issue + .home-forecast-tier-issue { border-top: 6px solid var(--hf-tier-caption); }

.home-forecast-tier-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    background: var(--hf-tier-surface);
}

.home-forecast-tier-table caption {
    position: relative;
    padding: .6rem 4.6rem;
    background: var(--hf-tier-caption);
    color: var(--hf-tier-blue);
    font-size: clamp(.94rem, 2.8vw, 1.48rem);
    font-weight: 820;
    text-align: center;
    overflow-wrap: anywhere;
}

.home-forecast-tier-table caption a {
    position: absolute;
    top: 50%;
    right: .58rem;
    transform: translateY(-50%);
    color: inherit;
    font-size: .72rem;
    font-weight: 700;
}

.home-forecast-tier-table caption a:hover { text-decoration: underline; }
.home-forecast-tier-label-col { width: 24%; }
.home-forecast-tier-result-col { width: 19%; }

.home-forecast-tier-table tbody :is(th, td) {
    padding: clamp(.5rem, 1.45vw, 1.16rem) clamp(.2rem, .68vw, .55rem);
    border-top: 1px solid var(--hf-tier-grid);
    text-align: center;
}

.home-forecast-tier-table tbody td { border-inline-start: 1px solid var(--hf-tier-grid); }

.home-forecast-tier-table tbody th {
    color: var(--hf-tier-label);
    font-size: clamp(.86rem, 2.35vw, 1.85rem);
    font-weight: 780;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.home-forecast-tier-table tbody th span { display: inline-block; }
.home-forecast-tier-table tbody th span + span { margin-inline-start: .3em; }

.home-forecast-tier-candidates {
    color: var(--hf-tier-prediction);
    font-size: clamp(1.1rem, 3.05vw, 2.15rem);
    font-weight: 830;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.home-forecast-tier-numbers { font-variant-numeric: tabular-nums; }
.home-forecast-tier-candidates :is(span, mark) { display: inline-block; white-space: nowrap; }
.home-forecast-tier-candidates:not(.home-forecast-tier-numbers) :is(span, mark) { margin-inline: .045em; }

.home-forecast-tier-candidates mark {
    background: var(--hf-tier-match);
    color: inherit;
    text-decoration: underline;
    text-underline-offset: .12em;
}

.home-forecast-tier-result {
    color: var(--hf-tier-result);
    font-size: clamp(.83rem, 2.1vw, 1.65rem);
    font-weight: 760;
    font-variant-numeric: tabular-nums;
    line-height: 1.25;
}

.home-forecast-tier-result small { display: inline-block; margin-inline-start: .25em; font-size: .8em; }
.home-forecast-tier-result [data-tier-status='hit'] { color: var(--hf-hit); }
.home-forecast-tier-result [data-tier-status='miss'] { color: var(--hf-miss); }

@media (max-width: 670px) {
    .home-forecast-tier-table tbody th span { display: block; }
    .home-forecast-tier-table tbody th span + span { margin-inline-start: 0; }
    .home-forecast-tier-result small { display: block; margin-inline-start: 0; }
}

@media (max-width: 340px) {
    .home-forecast-tier-candidates { font-size: 1.0625rem; }
}

.home-forecast-records .home-forecast-actions {
    display: flex;
    align-items: center;
    gap: clamp(5px, 1.2vw, 14px);
    min-width: 0;
}
.home-forecast-records .home-forecast-outcome { flex-direction: row; align-items: center; }
.home-forecast-records .home-forecast-result {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 1px 4px;
    color: var(--hf-record-ink);
    white-space: normal;
}
.home-forecast-records .home-forecast-result-label { white-space: nowrap; }
.home-forecast-records .home-forecast-ball-result {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    border-bottom: 2px solid var(--hf-ball-mark, transparent);
    color: var(--hf-record-ink);
    font-size: .79rem;
    font-weight: 750;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.home-forecast-ball-result[data-wave='red'] { --hf-ball-mark: #e35064; }
.home-forecast-ball-result[data-wave='blue'] { --hf-ball-mark: #6397ea; }
.home-forecast-ball-result[data-wave='green'] { --hf-ball-mark: #46a783; }
.home-forecast-records .home-forecast-badge {
    min-width: 0;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: .72rem;
}
.home-forecast-records .home-forecast-detail-action {
    min-height: 24px;
    padding: 2px;
    border-color: transparent;
    background: transparent;
    color: var(--hf-record-caption);
    font-weight: 710;
}
.home-forecast-records .home-forecast-row:is(:hover, :focus-visible) .home-forecast-detail-action {
    background: transparent;
    color: var(--hf-record-period);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.home-forecast-inline-gallery {
    margin-block: 13px;
    padding: 8px var(--hf-inset);
    border: 1px solid var(--hf-line);
    border-radius: 9px;
    background: var(--hf-soft);
}
.home-forecast-gallery-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 2px 10px;
    margin: 0 0 5px;
    color: var(--pub-muted);
    font-size: .8rem;
    font-variant-numeric: tabular-nums;
}
.home-forecast-gallery-heading h4 { margin: 0; color: var(--pub-ink); font-size: .91rem; }
.home-forecast-gallery-options {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 3px;
    margin-bottom: 5px;
}
.public-site .home-forecast-gallery-options a {
    display: grid;
    place-items: center;
    min-height: 32px;
    padding: 2px 0;
    border: 1px solid var(--hf-line);
    border-radius: 4px;
    background: var(--hf-surface);
    color: var(--pub-ink);
    font-size: .75rem;
    font-weight: 710;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.public-site .home-forecast-gallery-options a:hover { border-color: currentColor; }
.public-site .home-forecast-gallery-options a[aria-current] {
    border-color: #692d4d;
    background: #692d4d;
    color: #fffaf4;
}
.public-site .home-forecast-gallery-options a:focus-visible { outline-offset: -3px; }
.home-forecast-gallery-featured { margin: 0; }
.home-forecast-gallery-featured a,
.home-forecast-gallery-featured picture { display: block; }
.home-forecast-gallery-featured img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 400px;
    aspect-ratio: 8 / 5;
    border: 1px solid var(--hf-line);
    border-radius: 6px;
    background: var(--hf-surface);
    color: var(--pub-ink);
    object-fit: contain;
}
.home-forecast-gallery-history { margin: 7px 0 0; }
.home-forecast-gallery-history summary { font-size: .84rem; }

.home-forecast-plan-row {
    display: grid;
    grid-template-columns: minmax(134px, 21%) minmax(0, 1fr) auto;
    justify-content: normal;
    background: var(--hf-record-row);
    color: var(--hf-record-ink);
}
.home-forecast-plan .home-forecast-list > li:nth-child(even) .home-forecast-plan-row {
    background: var(--hf-record-row-alt);
}
.home-forecast-plan-range {
    color: var(--hf-record-period);
    font-weight: 760;
    font-variant-numeric: tabular-nums;
}
.home-forecast-plan-overall { justify-self: end; }
.home-forecast-plan-slots { grid-column: 1 / -1; }

@media (max-width: 670px) {
    .home-forecast-records .home-forecast-row {
        grid-template-columns: minmax(91px, 35%) minmax(0, 1fr);
        gap: 3px 6px;
    }
    .home-forecast-records [data-forecast-format='number-lines'] .home-forecast-values { max-inline-size: 18ch; }
    .home-forecast-records [data-forecast-format='number-lines'] [data-pick-length='10'] .home-forecast-values { max-inline-size: 15ch; }
    .home-forecast-records .home-forecast-period { font-size: .8rem; }
    .home-forecast-records .home-forecast-detail-action { font-size: .72rem; }
    .home-forecast-records .home-forecast-ball-result { font-size: .72rem; }
    .home-forecast-inline-gallery { padding-inline: 7px; }
    .public-site .home-forecast-gallery-options a { font-size: .67rem; }
    .home-forecast-plan-row { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 6px; }
    .home-forecast-plan-row .home-forecast-pick { grid-row: 2; }
    .home-forecast-plan-overall { grid-area: 1 / 2; }
}

/* 主导航对应的十四种玩法，从候选的结构区分版式。扩展栏目沿用通用表。 */
[data-forecast-block='six-zodiac']       { --hf-play-accent: #8b244a; --hf-play-pale: #fce9f0; --hf-play-bright: #ffabc9; }
[data-forecast-block='flat-zodiac']      { --hf-play-accent: #174e84; --hf-play-pale: #e4f1ff; --hf-play-bright: #a8d5ff; }
[data-forecast-block='four-zodiac-eight'] { --hf-play-accent: #654187; --hf-play-pale: #f0e8fe; --hf-play-bright: #e1bcff; }
[data-forecast-block='sum-parity']       { --hf-play-accent: #933c27; --hf-play-pale: #ffede1; --hf-play-bright: #ffb79f; }
[data-forecast-block='domestic-wild']    { --hf-play-accent: #12614d; --hf-play-pale: #e1f6ed; --hf-play-bright: #a3efd4; }
[data-forecast-block='two-waves']        { --hf-play-accent: #304e9c; --hf-play-pale: #e8edff; --hf-play-bright: #b4c4ff; }
[data-forecast-block='parity-size']      { --hf-play-accent: #9c365c; --hf-play-pale: #ffe8f1; --hf-play-bright: #ffc0d7; }
[data-forecast-block='twenty-four']      { --hf-play-accent: #3a4973; --hf-play-pale: #e9edfd; --hf-play-bright: #c9d2ff; }
[data-forecast-block='five-zodiac-ten']  { --hf-play-accent: #855328; --hf-play-pale: #ffefd8; --hf-play-bright: #ffd099; }
[data-forecast-block='parity-four-zodiac'] { --hf-play-accent: #4f3883; --hf-play-pale: #f0eafd; --hf-play-bright: #d8c0ff; }
[data-forecast-block='four-tail-eight']  { --hf-play-accent: #1b626b; --hf-play-pale: #ddf4f6; --hf-play-bright: #9de9ed; }
[data-forecast-block='flat-tail']        { --hf-play-accent: #793f62; --hf-play-pale: #f8e9f5; --hf-play-bright: #f8b9e5; }
[data-forecast-block='three-head']       { --hf-play-accent: #28536a; --hf-play-pale: #e2f1f6; --hf-play-bright: #a8def1; }
[data-forecast-block='exclude-wave']    { --hf-play-accent: #703b3a; --hf-play-pale: #faeae7; --hf-play-bright: #ffc9c1; }

.home-forecast-block[data-forecast-block] {
    --hf-play-ink: var(--hf-play-accent);
    --hf-play-fill: var(--hf-play-pale);
    --hf-play-outline: var(--hf-record-rule);
}

:root[data-theme='dark'] .home-forecast-block[data-forecast-block] {
    --hf-play-ink: var(--hf-play-bright);
    --hf-play-fill: #38313e;
}

.home-forecast-block[data-forecast-block] > .home-forecast-block-head {
    border-bottom: 2px solid var(--hf-play-bright);
    background: var(--hf-play-accent);
}

.home-forecast-block[data-forecast-block] .home-forecast-group > b {
    color: var(--hf-play-ink);
}

.home-forecast-block[data-forecast-block] .home-forecast-values {
    align-items: center;
    color: var(--hf-play-ink);
    word-spacing: normal;
}

.home-forecast-block[data-forecast-block] .home-forecast-values > span {
    display: inline-flex;
    min-inline-size: 0;
    align-items: center;
    justify-content: center;
    padding: .08em .22em;
    border-radius: 3px;
    background: var(--hf-play-fill);
    color: inherit;
    line-height: 1.35;
}

.home-forecast-block[data-forecast-block] .home-forecast-values > span[data-match],
.home-forecast-block[data-forecast-block] .home-forecast-group > b[data-match] {
    background: var(--hf-hit-bg);
    color: var(--hf-hit);
}

:is([data-forecast-block='four-zodiac-eight'], [data-forecast-block='twenty-four'],
    [data-forecast-block='five-zodiac-ten'], [data-forecast-block='four-tail-eight']) .home-forecast-columns {
    display: none;
}
:is([data-forecast-block='four-zodiac-eight'], [data-forecast-block='twenty-four'],
    [data-forecast-block='five-zodiac-ten'], [data-forecast-block='four-tail-eight']) .home-forecast-row {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 5px;
}
:is([data-forecast-block='four-zodiac-eight'], [data-forecast-block='twenty-four'],
    [data-forecast-block='five-zodiac-ten'], [data-forecast-block='four-tail-eight']) .home-forecast-pick {
    grid-column: 1 / -1;
    grid-row: 2;
}
:is([data-forecast-block='four-zodiac-eight'], [data-forecast-block='twenty-four'],
    [data-forecast-block='five-zodiac-ten'], [data-forecast-block='four-tail-eight']) .home-forecast-actions {
    grid-area: 1 / 2;
}

[data-forecast-block='six-zodiac'] .home-forecast-group { width: 100%; }
[data-forecast-block='six-zodiac'] .home-forecast-values {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1px;
    padding-block: 3px;
    border-block: 1px solid var(--hf-play-outline);
    font-size: clamp(1.02rem, 2.26vw, 1.43rem);
    text-align: center;
}
[data-forecast-block='six-zodiac'] .home-forecast-values > span { padding-block: .2em; }

:is([data-forecast-block='flat-zodiac'], [data-forecast-block='flat-tail']) .home-forecast-group {
    flex-direction: row-reverse;
    align-items: center;
    gap: 7px;
}
[data-forecast-block='flat-zodiac'] .home-forecast-values { font-size: clamp(1.12rem, 2.6vw, 1.68rem); }
[data-forecast-block='flat-zodiac'] .home-forecast-values > span {
    min-inline-size: 1.55em;
    border-inline-start: 3px solid currentColor;
    border-radius: 4px;
}
[data-forecast-block='flat-tail'] .home-forecast-values { font-size: clamp(1.03rem, 2.3vw, 1.43rem); }
[data-forecast-block='flat-tail'] .home-forecast-values > span {
    min-inline-size: 2.8em;
    padding-inline: .45em;
    border: 1px solid currentColor;
    border-radius: 99px;
    font-variant-numeric: tabular-nums;
}

[data-forecast-block='four-zodiac-eight'] .home-forecast-row .home-forecast-pick {
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: center;
    gap: 4px 9px;
}
[data-forecast-block='four-zodiac-eight'] [data-pick-id='class'] .home-forecast-values > span:not([data-match]) {
    padding-inline: .38em;
    border: 1px solid currentColor;
    border-radius: 3px 9px 9px 3px;
}
[data-forecast-block='four-zodiac-eight'] [data-pick-id='animals'] .home-forecast-values {
    font-size: clamp(.96rem, 2.1vw, 1.21rem);
}
[data-forecast-block='four-zodiac-eight'] [data-pick-id='numbers'] {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    padding-top: 3px;
    border-top: 1px dashed var(--hf-play-outline);
}

[data-forecast-block='sum-parity'] .home-forecast-values {
    font-size: clamp(1.05rem, 2.25vw, 1.4rem);
    font-weight: 840;
}
[data-forecast-block='sum-parity'] .home-forecast-values > span {
    padding-inline: .55em;
    border-bottom: 2px solid currentColor;
    border-radius: 4px 4px 0 0;
}

:is([data-forecast-block='domestic-wild'], [data-forecast-block='parity-size'], [data-forecast-block='parity-four-zodiac']) .home-forecast-group {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    gap: 3px;
}
[data-forecast-block='domestic-wild'] .home-forecast-group {
    padding: 3px 6px;
    border-inline-start: 3px solid var(--hf-play-ink);
    border-radius: 4px;
    background: var(--hf-play-fill);
}
[data-forecast-block='domestic-wild'] [data-pick-id='wild'] {
    border-inline-start-style: double;
    background: transparent;
}
[data-forecast-block='parity-four-zodiac'] .home-forecast-group {
    padding: 3px 5px;
    border-block: 1px solid var(--hf-play-outline);
}
[data-forecast-block='parity-four-zodiac'] [data-pick-id='odd'] { background: var(--hf-play-fill); }
[data-forecast-block='parity-four-zodiac'] [data-pick-id='even'] { border-block-style: dashed; }
[data-forecast-block='parity-size'] .home-forecast-group {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
}
[data-forecast-block='parity-size'] .home-forecast-values > span {
    padding-inline: .38em;
    border-block: 1px solid var(--hf-play-outline);
    border-radius: 0;
    font-weight: 830;
}
[data-forecast-block='parity-size'] [data-pick-id='size'] .home-forecast-values > span { border-block-style: dashed; }

.home-forecast-block[data-forecast-block] .home-forecast-values > span[data-wave='red'] {
    --hf-play-wave-fill: #9e2945;
    --hf-play-wave-ink: var(--hf-wave-red);
}
.home-forecast-block[data-forecast-block] .home-forecast-values > span[data-wave='blue'] {
    --hf-play-wave-fill: #284d9e;
    --hf-play-wave-ink: var(--hf-wave-blue);
}
.home-forecast-block[data-forecast-block] .home-forecast-values > span[data-wave='green'] {
    --hf-play-wave-fill: #166048;
    --hf-play-wave-ink: var(--hf-wave-green);
}
.home-forecast-block[data-forecast-block='two-waves'] .home-forecast-values {
    gap: 6px;
    font-size: clamp(.94rem, 2.2vw, 1.18rem);
}
.home-forecast-block[data-forecast-block='two-waves'] .home-forecast-values > span[data-wave] {
    min-inline-size: 3.1em;
    padding: .15em .42em;
    border-radius: 5px;
    background: var(--hf-play-wave-fill);
    color: #fff;
}
.home-forecast-block[data-forecast-block='two-waves'] .home-forecast-values > span[data-wave][data-match] {
    box-shadow: inset 0 0 0 2px #fff;
}
.home-forecast-block[data-forecast-block='exclude-wave'] .home-forecast-values > span[data-wave] {
    padding-inline: .45em;
    border: 1px dashed currentColor;
    background: transparent;
    color: var(--hf-play-wave-ink);
}
.home-forecast-block[data-forecast-block='exclude-wave'] .home-forecast-values > span[data-wave][data-match] {
    background: var(--hf-hit-bg);
    color: var(--hf-hit);
}

[data-forecast-block='twenty-four'] .home-forecast-group,
[data-forecast-block='twenty-four'] .home-forecast-group .home-forecast-values,
[data-forecast-block='five-zodiac-ten'] .home-forecast-group[data-pick-id='numbers'] .home-forecast-values {
    width: 100%;
    max-inline-size: none;
}
[data-forecast-block='twenty-four'] .home-forecast-group .home-forecast-values,
[data-forecast-block='five-zodiac-ten'] .home-forecast-group[data-pick-id='numbers'] .home-forecast-values {
    display: grid;
    grid-template-columns: repeat(var(--hf-play-number-columns), minmax(0, 1fr));
    gap: 2px;
    font-variant-numeric: tabular-nums;
}
[data-forecast-block='twenty-four'] { --hf-play-number-columns: 12; }
[data-forecast-block='five-zodiac-ten'] { --hf-play-number-columns: 10; }
[data-forecast-block='twenty-four'] .home-forecast-group + .home-forecast-group { margin-block-start: 2px; }
[data-forecast-block='five-zodiac-ten'] .home-forecast-group[data-pick-id='animals'] .home-forecast-values {
    font-size: clamp(1rem, 2.2vw, 1.3rem);
}
[data-forecast-block='five-zodiac-ten'] .home-forecast-group {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
}
[data-forecast-block='five-zodiac-ten'] .home-forecast-group[data-pick-id='numbers'] {
    padding-top: 3px;
    border-top: 1px solid var(--hf-play-outline);
}

[data-forecast-block='four-tail-eight'] .home-forecast-row .home-forecast-pick {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
}
[data-forecast-block='four-tail-eight'] .home-forecast-group {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    border: 1px solid var(--hf-play-outline);
    border-radius: 5px;
}
[data-forecast-block='four-tail-eight'] .home-forecast-group > b { font-size: .78rem; }

[data-forecast-block='three-head'] .home-forecast-values {
    gap: 5px;
    font-size: clamp(.95rem, 2.1vw, 1.16rem);
    font-variant-numeric: tabular-nums;
}
[data-forecast-block='three-head'] .home-forecast-values > span {
    min-inline-size: 2.9em;
    border: 1px solid var(--hf-play-outline);
    border-top: 2px solid currentColor;
    border-radius: 2px;
}

@media (max-width: 670px) {
    [data-forecast-block='twenty-four'] { --hf-play-number-columns: 6; }
    [data-forecast-block='five-zodiac-ten'] { --hf-play-number-columns: 5; }
}

/* 短预测记录保持三列，候选较长时只在中间一列内换行。 */
.home-forecast-records .home-forecast-row[data-forecast-flow='inline'] {
    --hf-inline-period: clamp(116px, 12.8vw, 149px);
    --hf-inline-result: clamp(104px, 15vw, 174px);
    grid-template-columns: var(--hf-inline-period) minmax(0, 1fr) var(--hf-inline-result);
    align-items: center;
    column-gap: clamp(6px, 1.4vw, 14px);
}

.home-forecast-records .home-forecast-row[data-forecast-flow='inline'] > .home-forecast-period {
    position: relative;
    grid-area: 1 / 1;
    min-width: 0;
}

.home-forecast-records .home-forecast-row[data-forecast-flow='inline'] .home-forecast-period-short { display: none; }

.home-forecast-records .home-forecast-row[data-forecast-flow='inline'] > .home-forecast-pick {
    grid-area: 1 / 2;
    align-items: center;
    min-width: 0;
}

.home-forecast-records .home-forecast-row[data-forecast-flow='inline'][data-layout='compact'] > .home-forecast-pick,
.home-forecast-records .home-forecast-row[data-forecast-flow='inline'] .home-forecast-values {
    justify-content: center;
}

.home-forecast-records .home-forecast-row[data-forecast-flow='inline'][data-layout='paired'] .home-forecast-group > b {
    justify-self: center;
}

.home-forecast-records .home-forecast-row[data-forecast-flow='inline'] > .home-forecast-actions {
    grid-area: 1 / 3;
    justify-self: stretch;
    justify-content: flex-end;
    min-width: 0;
}

.home-forecast-records .home-forecast-row[data-forecast-flow='inline'] .home-forecast-outcome {
    flex-wrap: wrap;
    justify-content: flex-end;
    min-width: 0;
    gap: 2px 4px;
}

.home-forecast-records .home-forecast-row[data-forecast-flow='inline'] .home-forecast-badge {
    padding: 1px 4px;
    font-size: .72rem;
}

.home-forecast-records .home-forecast-row[data-forecast-flow='inline'] .home-forecast-detail-action {
    position: absolute;
    width: 1px;
    height: 1px;
    min-width: 0;
    min-height: 0;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.home-forecast-records .home-forecast-row[data-forecast-flow='inline'] [data-pick-kind='number'] .home-forecast-values {
    word-break: normal;
    overflow-wrap: normal;
}

.home-forecast-records .home-forecast-row[data-forecast-flow='inline'] [data-pick-kind='number'] .home-forecast-values > span {
    white-space: nowrap;
}

@media (max-width: 670px) {
    .home-forecast-records .home-forecast-row[data-forecast-flow='inline'] {
        --hf-inline-period: clamp(36px, 12vw, 76px);
        --hf-inline-result: clamp(64px, 19.4vw, 109px);
        column-gap: clamp(4px, 1.25vw, 8px);
    }

    .home-forecast-records .home-forecast-row[data-forecast-flow='inline'] .home-forecast-period-short { display: inline; }

    .home-forecast-records .home-forecast-row[data-forecast-flow='inline'] .home-forecast-period-full {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .home-forecast-records .home-forecast-row[data-forecast-flow='inline'] .home-forecast-pick,
    .home-forecast-records .home-forecast-row[data-forecast-flow='inline'] .home-forecast-group { gap: 2px 4px; }
    .home-forecast-records .home-forecast-row[data-forecast-flow='inline'] .home-forecast-values { gap: 2px; }
    .home-forecast-records .home-forecast-row[data-forecast-flow='inline'] .home-forecast-values > span { padding-inline: .12em; }
    .home-forecast-records .home-forecast-row[data-forecast-flow='inline'][data-layout='paired'] .home-forecast-values {
        font-size: clamp(.75rem, 2.6vw, .92rem);
    }
    .home-forecast-records .home-forecast-row[data-forecast-flow='inline'][data-layout='paired'] .home-forecast-group { padding-inline: 3px; }
    .home-forecast-records .home-forecast-row[data-forecast-flow='inline'] .home-forecast-badge { font-size: .69rem; }
}

@media (max-width: 449px) {
    .home-forecast-records .home-forecast-row[data-forecast-flow='inline'] .home-forecast-result-label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        clip-path: inset(50%);
        white-space: nowrap;
    }
}

@media (max-width: 360px) {
    .home-forecast-records .home-forecast-row[data-forecast-flow='inline'][data-layout='paired'] .home-forecast-group > b {
        font-size: .68rem;
    }
    .home-forecast-records .home-forecast-row[data-forecast-flow='inline'] .home-forecast-ball-result { font-size: .68rem; }
}

.home-forecast-records .home-forecast-row[data-forecast-flow='stacked'] {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 5px;
}

.home-forecast-records .home-forecast-row[data-forecast-flow='stacked'] > .home-forecast-period { grid-area: 1 / 1; }
.home-forecast-records .home-forecast-row[data-forecast-flow='stacked'] > .home-forecast-actions { grid-area: 1 / 2; }

.home-forecast-records .home-forecast-row[data-forecast-flow='stacked'] > .home-forecast-pick {
    grid-area: 2 / 1 / auto / -1;
}

.home-forecast-records .home-forecast-row[data-forecast-format='zodiac-pairs'] > .home-forecast-pick {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3px 6px;
}

.home-forecast-records .home-forecast-row[data-forecast-format='zodiac-pairs'] .home-forecast-group {
    align-items: center;
    min-width: 0;
    gap: 4px;
    padding: 2px 4px;
    border-bottom: 1px solid var(--hf-record-rule);
}

.home-forecast-records .home-forecast-row[data-forecast-format='zodiac-pairs'] .home-forecast-values {
    word-break: normal;
    white-space: nowrap;
}
