.home-library {
    min-height: calc(100svh - 86px);
    padding: 124px 0 68px;
    background:
        radial-gradient(ellipse at 82% 0%, #e9d6ff, transparent 52%),
        linear-gradient(155deg, #fff9ec, #fbf8ff 72%);
}

.home-library-header { margin-bottom: 28px; }

.home-library h1,
.home-library h2 {
    font-family: 'Orbitron', 'Inter', system-ui, sans-serif;
    line-height: 1.12;
}

.home-library h1 {
    font-size: clamp(2rem, 4.2vw, 3.65rem);
    letter-spacing: -.045em;
}

.home-game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 285px), 1fr));
    gap: 22px;
}

.home-game-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 20px;
    background: #fffdfd;
    box-shadow: 0 18px 36px -26px #4f227b70;
}

.home-game-art {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 9;
}

.home-game-art img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.home-game-art > span { font-size: 2.5rem; }

.home-hover-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #211335;
    opacity: 0;
    pointer-events: none;
}

.home-game-card.is-previewing .home-hover-video { opacity: 1; }
.home-game-copy { display: flex; flex: 1; flex-direction: column; padding: 20px; }

.home-game-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--text-2);
    font-size: .78rem;
    font-weight: 700;
}

.home-game-tags .home-platform {
    padding: 3px 8px;
    border: 1px solid #d9c3f0;
    border-radius: 6px;
    background: #f1e4ff;
    color: var(--studio-purple);
    font-size: .68rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.home-game-copy h2 { margin-top: 12px; font-size: clamp(1.2rem, 2vw, 1.55rem); }
.home-game-copy p { margin: 8px 0 18px; color: var(--text-2); }

.home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

.home-play,
.home-details {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 14px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: .88rem;
    font-weight: 800;
}

.home-play {
    background: #ffd266;
    border-color: #efba43;
    color: #35200c;
    box-shadow: 0 2px 0 #d99724;
}

.home-play:hover { background: #ffe18b; }
.home-details { background: #fffafc; border-color: var(--line-strong); color: var(--studio-purple); }
.home-details:hover { background: #f3e7ff; }

@media (min-width: 721px) {
    .home-game-card:only-child {
        display: grid;
        grid-column: 1 / -1;
        grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
        max-width: 1080px;
    }

    .home-game-card:only-child .home-game-art { align-self: center; aspect-ratio: 1024 / 500; }
    .home-game-card:only-child .home-game-copy { justify-content: center; padding: clamp(24px, 4vw, 48px); }
    .home-game-card:only-child h2 { font-size: clamp(1.5rem, 3vw, 2.75rem); }
    .home-game-card:only-child .home-actions { margin-top: 4px; }
}

@media (max-width: 720px) {
    .home-library { padding: 96px 0 42px; }
    .home-library-header { margin-bottom: 20px; }
    .home-game-grid { gap: 16px; }
}
