/* Scoped to the new section. The neighboring landing sections retain their styles. */
.page-shell.is-home > .home-latest-decks { width:min(1160px,100%); margin:56px auto 0; --latest-card-width:280px; --latest-gap:16px; }
html:is(.dc-maybe-returning,.dc-authenticated,.dc-returning-active) .page-shell.is-home > .home-latest-decks { width:100%; }
/* The returning homepage places the footer directly below the carousel. */
.page-shell.is-home > .home-latest-decks ~ .site-footer { border-top:0; }
.home-latest-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:20px; }
.home-latest-heading h2 { margin:0; font:700 clamp(1.125rem,2vw,1.5rem)/1.4 var(--font-sans); color:var(--text-1); }
.home-latest-actions { display:flex; align-items:center; gap:16px; flex-shrink:0; }
.home-latest-actions a { color:var(--home-muted,#b5b1c3); font-size:.8125rem; text-underline-offset:4px; }
.home-latest-actions a:hover { color:#efd58b; }
.home-latest-pause { min-width:44px; min-height:44px; border:1px solid var(--home-border,#3b3944); border-radius:8px; background:transparent; color:var(--text-1); cursor:pointer; }
.home-latest-pause:hover { border-color:#c9a84c; background:#c9a84c12; }
.home-latest-decks [hidden] { display:none!important; }
.home-latest-window { position:relative; overflow:hidden; padding:4px; height:calc(var(--latest-card-width) / 1.9 + 8px); touch-action:pan-y pinch-zoom; cursor:grab; }
.home-latest-window.is-dragging { cursor:grabbing; user-select:none; }
.home-latest-window.is-dragging a { cursor:grabbing; }
.home-latest-belt { display:flex; gap:var(--latest-gap); width:max-content; }
.home-latest-window.is-moving .home-latest-belt { will-change:transform; }
.home-latest-track { display:flex; gap:var(--latest-gap); list-style:none; margin:0; padding:0; }
.home-latest-card { position:relative; flex:0 0 var(--latest-card-width); width:var(--latest-card-width); aspect-ratio:1.9; border:1px solid var(--home-border,#3b3944); border-radius:8px; background:var(--home-panel,#121217); overflow:hidden; transition:border-color 220ms ease; }
.home-latest-card:hover,.home-latest-card:focus-within { border-color:#c9a84c; }
.home-latest-cover { position:absolute; inset:0; overflow:hidden; pointer-events:none; }
.home-latest-cover img { display:block; width:100%; height:100%; object-fit:cover; }
.home-latest-cover.is-fallback { background:radial-gradient(ellipse at 25% 10%,#49402b 0,transparent 70%),linear-gradient(125deg,#24242c,#15151b); }
.home-latest-card::after { content:''; position:absolute; inset:0; pointer-events:none; background:linear-gradient(180deg,#09090c20,#09090ccc 30%,#09090cf5 100%); }
.home-latest-open { position:relative; z-index:1; display:flex; flex-direction:column; justify-content:flex-end; height:100%; padding:12px 14px 44px; color:#f3f1f8!important; text-decoration:none; }
.home-latest-title { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; font-size:.875rem; line-height:1.4; font-weight:750; }
.home-latest-commander { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; margin-top:4px; font-size:.6875rem; line-height:1.5; color:#d0cdda; }
.home-latest-meta { position:absolute; z-index:2; inset:auto 14px 12px; display:flex; align-items:center; justify-content:space-between; gap:8px; font-size:.6875rem; line-height:20px; color:#d0cdda; pointer-events:none; }
.home-latest-owner { display:flex; align-items:center; gap:6px; min-width:0; color:#f3f1f8; text-decoration:none; pointer-events:auto; }
.home-latest-owner span { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.home-latest-owner img { width:20px; height:20px; border-radius:50%; object-fit:cover; flex-shrink:0; }
.home-latest-meta time { flex-shrink:0; }
.home-latest-decks a:focus-visible,.home-latest-pause:focus-visible { outline:2px solid #efd58b; outline-offset:2px; }
.home-latest-open:focus-visible { outline-offset:-3px; border-radius:7px; }
.home-latest-state { position:absolute; inset:4px; display:flex; align-items:center; justify-content:center; padding:20px; margin:0; border:1px solid var(--home-border,#3b3944); border-radius:8px; color:var(--home-muted,#b5b1c3); font-size:.8125rem; text-align:center; }
@media(max-width:599px) {
 .page-shell.is-home > .home-latest-decks { margin-top:36px; --latest-gap:12px; --latest-card-width:240px; }
 .home-latest-heading { gap:8px; flex-wrap:wrap; margin-bottom:16px; }
 .home-latest-actions { gap:12px; }
}
@media(prefers-reduced-motion:reduce) { .home-latest-card,.home-latest-cover { transition:none; } }

.page-shell.is-home>.home-latest-decks[hidden]{display:none!important}
.home-latest-decks.is-manual .home-latest-window{overflow-x:auto;overflow-y:hidden;touch-action:auto;scrollbar-width:none;overscroll-behavior-x:contain}
.home-latest-decks.is-manual .home-latest-window::-webkit-scrollbar{display:none}
.home-latest-decks.is-manual .home-latest-belt{transform:none!important}
.home-latest-window:focus-visible{outline:2px solid #efd58b;outline-offset:2px;border-radius:8px}
