/* 20261123-loadout-release-1 */
#archive-game-directory {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
    grid-auto-rows: auto;
    max-height: min(24rem, 52vh);
    align-content: start;
}
#archive-game-directory > button {
    grid-template-columns: 1.45rem minmax(0, 1fr);
    grid-template-rows: auto auto;
    height: auto;
    min-height: 4.5rem;
    min-width: 0;
    padding: .65rem .72rem;
    column-gap: .66rem;
    justify-content: start;
    overflow: visible;
}
#archive-game-directory > button.gg-has-battle-chip-tab { grid-template-columns: 3.15rem minmax(0, 1fr); }
#archive-game-directory > button > span { align-self: center; }
#archive-game-directory > button .gg-nav-chip-slot { width: 3.15rem; height: 2.45rem; }
#archive-game-directory > button .gg-nav-chip-slot .gg-battle-chip-image { max-height: 2.45rem; }
#archive-game-directory > button > :is(strong, small) {
    grid-column: 2;
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: none;
    line-height: 1.3;
    overflow: visible;
}
#archive-game-directory > button > strong { font-size: .88rem; }
#archive-game-directory > button > small { font-size: .8rem; }
/* Size expanded headings to their own column, with the chip above the title. */
[data-archive-panel] .archive-hero-copy {
    container-type: inline-size;
    min-width: 0;
    scroll-margin-top: 4.5rem;
}
[data-archive-panel] .gg-archive-heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .85rem;
    width: 100%;
    min-width: 0;
}
[data-archive-panel] .archive-hero-copy h4 {
    min-width: 0;
    max-width: 100%;
    font-size: clamp(1.6rem, 3vw, 3.4rem);
    font-size: clamp(1.6rem, 8.5cqi, 3.4rem);
    line-height: 1.12;
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
    text-wrap: balance;
}
[data-archive-panel] .gg-archive-heading h4 {
    width: 100%;
    margin: 0;
}
[data-archive-panel] .gg-archive-heading .gg-catalog-chip {
    width: clamp(6rem, 9vw, 8.5rem);
    width: clamp(6rem, 26cqi, 8.5rem);
    max-width: 100%;
    margin: 0;
    flex: 0 0 auto;
}
[data-archive-panel] .gg-archive-heading .gg-battle-chip-image {
    width: 100%;
    height: auto;
    max-height: 6rem;
    object-fit: contain;
}
:root[data-view-mode="mobile"] [data-archive-panel] .archive-hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
}
:root[data-view-mode="mobile"] [data-archive-panel] .archive-hero > * {
    min-width: 0;
    max-width: 100%;
}
:root[data-view-mode="mobile"] [data-archive-panel] .archive-hero > .archive-hero-copy {
    width: 100%;
    padding: 1rem;
}
[data-archive-panel][data-gg-featured-record] .archive-hero-copy { display: flex; flex-direction: column; align-items: start; min-width: 0; }
[data-archive-panel][data-gg-featured-record] :is(.gg-archive-heading, .archive-hero-copy > h4) { order: -3; }
[data-archive-panel][data-gg-featured-record] .catalog-tagline { order: -2; margin: .65rem 0 0; }
[data-archive-panel][data-gg-featured-record] .archive-lede { order: -1; margin: .42rem 0 .9rem; line-height: 1.6; }
[data-archive-panel][data-gg-featured-record] .archive-status-row { order: 1; margin-top: .78rem; margin-bottom: 0; }
[data-archive-panel][data-gg-featured-record] .archive-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin: 0; }
:root[data-view-mode="mobile"] #archive-game-directory { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 650px) { #archive-game-directory { grid-template-columns: minmax(0, 1fr); } }

/* 20261124-combined-chips-2 */
#project-grid .gg-battle-chip-slot,
[data-archive-tab] .gg-nav-chip-slot {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
}
.gg-chip-art {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    transition: transform 180ms ease, filter 180ms ease;
}
#project-grid .gg-battle-chip-slot .gg-chip-art > .gg-battle-chip-image,
[data-archive-tab] .gg-chip-art > .gg-battle-chip-image,
[data-archive-panel] .gg-catalog-chip .gg-chip-art > .gg-battle-chip-image {
    position: absolute;
    left: var(--gg-chip-left);
    top: var(--gg-chip-top);
    width: var(--gg-chip-width);
    height: var(--gg-chip-height);
    max-width: none;
    max-height: none;
    object-fit: fill;
}
.project-card:is(:hover, :focus-visible) .gg-chip-art > .gg-battle-chip-image,
[data-archive-tab]:is(:hover, :focus-visible) .gg-chip-art > .gg-battle-chip-image {
    transform: none;
    filter: none;
}
.project-card:is(:hover, :focus-visible) .gg-chip-art,
[data-archive-tab]:is(:hover, :focus-visible) .gg-chip-art {
    transform: translateY(-3px);
    filter: drop-shadow(0 5px 7px #00e7e52b);
}
@media (prefers-reduced-motion: reduce) {
    .gg-chip-art { transition: none; }
    .project-card:is(:hover, :focus-visible) .gg-chip-art,
    [data-archive-tab]:is(:hover, :focus-visible) .gg-chip-art { transform: none; }
}
