/* Dark mode collection scroll fade */
[data-theme="dark"] .collection-scroll-wrapper::after {
    background: linear-gradient(to right, transparent, var(--card-surface));
}

/* Vignette spotlight effect */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at 50% 60%,
        transparent 30%,
        rgba(0, 0, 0, 0.45) 100%
    );
    pointer-events: none;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 2;
}

/* Home h1: one modest line; the finder below is the band's focus. */
.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.35;
    margin: 0 auto var(--sp-lg);
    max-width: 560px;
    color: var(--text-cream);
    text-wrap: balance;
}
.hero h1 strong {
    font-weight: 800;
    color: var(--text-light);
}

.hero .search-trigger {
    margin-bottom: var(--sp-xl);
}
.hero-finder__label {
    margin: 0;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
/* .felt-bg h2 would otherwise win with its light text colour. */
.felt-bg .hero-finder__label {
    color: var(--gold-light);
}
.felt-bg a.hero-seat {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 5 / 7;
    border-radius: var(--r-md);
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: linear-gradient(140deg, #fefaf0 0%, #efe3c8 100%);
    box-shadow:
        0 8px 18px rgba(0, 0, 0, 0.4),
        0 1px 2px rgba(0, 0, 0, 0.3);
    font-family: var(--font-display);
    color: var(--suit-dark);
    text-decoration: none;
    container-type: inline-size;
    transform: rotate(-2deg);
    transition:
        transform 0.2s var(--ease-out-expo),
        box-shadow 0.2s;
}
.felt-bg a.hero-seat:nth-child(even) {
    transform: rotate(2deg) translateY(3px);
}
.felt-bg a.hero-seat:hover {
    color: var(--suit-dark);
    transform: translateY(-4px);
    box-shadow:
        0 14px 26px rgba(0, 0, 0, 0.45),
        0 0 0 2px var(--gold);
}
.hero-seat__n {
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
}
.hero-seat__n--word {
    font-size: 15px;
}
.hero-seat__label {
    margin-top: 3px;
    /* Scales with the card so the longest translation ("jugadores")
       fits; plain 9px where container units are unsupported. */
    font-size: 9px;
    font-size: min(9px, 14.5cqi);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #6b6053; /* light-theme --text-secondary: the card stays cream in dark mode */
    max-width: 100%;
    overflow: hidden;
    text-overflow: clip;
    white-space: nowrap;
}
@media (max-width: 380px) {
    .hero-seat__n {
        font-size: 20px;
    }
    .hero-seat__n--word {
        font-size: 12px;
    }
}
.hero-seat.is-red .hero-seat__pip,
.hero-seat.is-red .hero-seat__n {
    color: var(--suit-red);
}
@media (min-width: 769px) {
    .hero-seat__pip {
        top: 6px;
        left: 8px;
        font-size: 14px;
    }
    .hero-seat__n {
        font-size: 34px;
    }
    .hero-seat__n--word {
        font-size: 20px;
    }
    .hero-seat__label {
        font-size: 11px;
        font-size: min(11px, 14.5cqi);
    }
}

/* Chips on felt: translucent, like the band's search field. */
.hero .browse-chip,
[data-theme="dark"] .hero .browse-chip {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(245, 236, 216, 0.28);
    color: var(--text-cream);
}
.hero .browse-chip:hover,
[data-theme="dark"] .hero .browse-chip:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--gold);
    color: var(--gold-light);
}
.hero .browse-chip__count,
[data-theme="dark"] .hero .browse-chip__count {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-cream);
}
.hero .home-filters-row--secondary {
    justify-content: center;
    border-top-color: rgba(245, 236, 216, 0.2);
}

.collection-scroll::-webkit-scrollbar {
    height: 4px;
}
.collection-scroll::-webkit-scrollbar-track {
    background: var(--parchment-dark);
    border-radius: 2px;
}
.collection-scroll::-webkit-scrollbar-thumb {
    background: var(--card-separator);
    border-radius: 2px;
}

.collection-scroll .card {
    position: relative;
    flex: 0 0 240px;
    scroll-snap-align: start;
}

.browse-chip__count {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--parchment-dark);
    padding: 1px 7px;
    border-radius: 10px;
    margin-left: 2px;
}

.browse-chip:hover {
    background: var(--felt-medium);
    color: var(--text-light);
    border-color: var(--felt-medium);
    transform: translateY(-1px);
}

.browse-chip:hover .browse-chip__count {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-cream);
}

[data-theme="dark"] .browse-chip {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--card-separator);
    color: var(--text-cream);
}

[data-theme="dark"] .browse-chip__count {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
}

[data-theme="dark"] .browse-chip:hover {
    background: var(--felt-medium);
    color: var(--text-light);
}

.search-trigger svg {
    opacity: 0.5;
    flex-shrink: 0;
    color: var(--text-cream);
}

.search-trigger span {
    flex: 1;
    text-align: left;
}

.search-trigger kbd {
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font-body);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--r-sm);
    color: rgba(245, 236, 216, 0.5);
    line-height: 1.4;
}

.search-trigger:hover {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(0, 0, 0, 0.35);
    box-shadow:
        0 0 0 4px rgba(212, 118, 60, 0.1),
        0 8px 24px rgba(0, 0, 0, 0.15);
}

.search-trigger:hover svg {
    opacity: 0.8;
}
.search-trigger:hover kbd {
    background: rgba(255, 255, 255, 0.15);
}

@media (max-width: 480px) {
    .search-trigger kbd {
        display: none;
    }
}

/* ==========================================================================
   A-Z Teaser (Homepage)
   ========================================================================== */
.az-teaser {
    background: var(--card-surface);
    border: 1px solid var(--card-separator);
    border-radius: var(--r-xl);
    padding: var(--sp-xxl);
    margin-bottom: var(--sp-xxl);
    text-align: center;
}

.az-teaser-header {
    margin-bottom: var(--sp-xl);
}

.az-teaser .az-letters {
    margin-bottom: var(--sp-xl);
}

.az-teaser-link:hover {
    background: var(--felt-medium);
    color: var(--text-light);
    transform: translateY(-1px);
}

@media (max-width: 768px) {

    /* Mobile hero: tighter band padding. */
    .hero {
        padding: var(--sp-lg) 0 var(--sp-xl);
    }
    .hero h1 {
        margin-bottom: var(--sp-md);
    }
    .hero .search-trigger {
        margin-bottom: var(--sp-lg);
    }
}

/* ==========================================================================
   Homepage "Featured lists" section
   ========================================================================== */
.home-lists {
    margin: var(--sp-xxxl) 0;
}
.home-lists-header {
    margin-bottom: var(--sp-xl);
}
.home-lists-header h2 {
    font-size: 1.5rem;
    margin: 0 0 var(--sp-sm) 0;
}
.home-lists-footer {
    margin-top: var(--sp-xl);
    text-align: center;
}
.home-lists-see-all:hover {
    border-bottom-color: var(--accent, #d4763c);
}
.holiday-banner .holiday-banner__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    line-height: 1.15;
}
.holiday-banner .holiday-banner__title a {
    color: var(--text-cream);
    text-decoration: none;
}
.holiday-banner .holiday-banner__title a:hover {
    text-decoration: underline;
}
.holiday-banner__lede {
    margin: 0;
    max-width: 52ch;
    font-size: 1rem;
    line-height: 1.55;
    color: var(--text-cream);
    opacity: 0.9;
}
.holiday-banner .holiday-banner__cta {
    margin-top: 6px;
    padding: 10px 20px;
    border-radius: 999px;
    background: var(--holiday-accent);
    color: var(--holiday-on-accent);
    font-weight: 700;
    text-decoration: none;
}
.holiday-banner__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}
.holiday-banner__photo--1 { left: 2%; top: 0; transform: rotate(-7deg); }
.holiday-banner__photo--2 { right: 0; top: 22%; transform: rotate(5deg); }
.holiday-banner__photo--3 { left: 16%; bottom: 0; transform: rotate(-2deg); }
@media (max-width: 768px) {
    .holiday-banner {
        grid-template-columns: 1fr;
        padding: 24px 20px 20px;
    }
    .holiday-banner__fan {
        height: 170px;
    }
}
.home-holiday-grid[hidden] {
    display: none;
}
@media (max-width: 768px) {
    .home-holiday-grid {
        grid-template-columns: 1fr;
    }
}

.collection-scroll-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 60px;
    background: linear-gradient(to right, transparent, var(--card-surface));
    pointer-events: none;
    z-index: 1;
}

.collection-scroll-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 60px;
    background: linear-gradient(to left, transparent, var(--card-surface));
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s;
}

.collection-scroll-wrapper.scrolled-left::before {
    opacity: 1;
}

.collection-scroll-wrapper:hover .scroll-btn {
    opacity: 1;
}

.scroll-btn:hover {
    background: var(--felt-medium);
    color: var(--text-light);
}

.scroll-btn--left {
    left: var(--sp-sm);
}
.scroll-btn--right {
    right: var(--sp-sm);
}

/* Home rail cards (all widths): photo-led, with the title and meta over a
   dark gradient. Square on wider screens; phones switch to 4:5 below. */
.collection-scroll .game-card-image {
    aspect-ratio: 1 / 1;
}
.collection-scroll .game-card .card-body {
    position: absolute;
    inset: auto 0 0 0;
    padding: 56px var(--sp-md) var(--sp-md);
    background: linear-gradient(to top, rgba(16, 24, 18, 0.95), rgba(16, 24, 18, 0.75) 50%, transparent);
}
.collection-scroll .game-card .game-card-title {
    margin-bottom: 6px;
    font-size: 18px;
    line-height: 1.15;
    color: var(--text-light);
}
.collection-scroll .game-card-meta {
    --pip-on: var(--gold);
    --pip-off: rgba(253, 246, 227, 0.35);
    gap: 4px;
    font-size: 12px;
    color: var(--text-light);
}
.collection-scroll .game-card-meta li {
    gap: 4px;
    padding: 3px 7px;
    border-radius: 99px;
    background: rgba(253, 246, 227, 0.16);
}

/* Home rails on phones: a native swipe rail with photo-led cards and the
   next card peeking in. This must stay after the base .scroll-btn and
   .collection-scroll-wrapper rules above: same specificity, so an earlier
   copy of these rules loses (which is how the arrows used to show on phones). */
@media (max-width: 768px) {
    .collection-scroll::-webkit-scrollbar {
        display: none;
    }
    .collection-scroll .card {
        flex: 0 0 68%;
        max-width: 280px;
    }
    .collection-scroll .game-card-image {
        aspect-ratio: 4 / 5;
    }
    .collection-scroll .game-card:hover .game-card-image {
        transform: none;
    }
    .collection-scroll .game-card .card-body {
        padding-inline: 10px;
    }
    .collection-scroll .game-card .game-card-title {
        font-size: 19px;
    }
    .rail-dots i {
        width: 6px;
        height: 6px;
        border-radius: 3px;
        background: var(--card-separator);
        transition: width 0.2s, background 0.2s;
    }
    .rail-dots i.is-active {
        width: 18px;
        background: var(--felt-medium);
    }
}

.hero .container {
    animation: fadeUp 0.6s var(--ease-out-expo) both;
}

.hero .search-trigger {
    animation: fadeUp 0.6s var(--ease-out-expo) 0.1s both;
}

.hero-finder {
    animation: fadeUp 0.6s var(--ease-out-expo) 0.2s both;
}
.hero-seat {
    animation: seatDeal 0.45s var(--ease-out-expo) both;
}
.hero-seat:nth-child(1) {
    animation-delay: 0.25s;
}
.hero-seat:nth-child(2) {
    animation-delay: 0.29s;
}
.hero-seat:nth-child(3) {
    animation-delay: 0.33s;
}
.hero-seat:nth-child(4) {
    animation-delay: 0.37s;
}
.hero-seat:nth-child(5) {
    animation-delay: 0.41s;
}
.hero-seat:nth-child(6) {
    animation-delay: 0.45s;
}
.hero-seat:nth-child(7) {
    animation-delay: 0.49s;
}

/* ==========================================================================
   Homepage v2 — stats strip, feature strip, featured pair, why, app band
   ========================================================================== */

/* Section heads */
.home-section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--sp-md);
    flex-wrap: wrap;
    margin-bottom: var(--sp-lg);
}
.home-section-head h2 {
    font-size: clamp(1.2rem, 2.2vw, 1.5rem);
    margin: 0;
}
.home-section-head .view-all {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-block: -10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    white-space: nowrap;
}
.home-section-head .view-all:hover {
    color: var(--accent-hover);
}

/* House-ads row: pairs Wrecked (60%) and Scorelog (40%) side by side on home page */
.house-ads-row {
    display: grid;
    grid-template-columns: 60fr 40fr;
    gap: var(--sp-xl);
    margin-bottom: var(--sp-xxl);
}
@media (max-width: 900px) {
    .house-ads-row {
        grid-template-columns: 1fr;
    }
}
.house-ads-row .wrecked-band,
.house-ads-row .scorelog-band {
    margin-bottom: 0;
    grid-template-columns: 1fr;
    padding: var(--sp-lg) var(--sp-xl);
    gap: var(--sp-md);
}
.house-ads-row .wrecked-band__lead,
.house-ads-row .scorelog-band__lead {
    gap: var(--sp-md);
}
.house-ads-row .wrecked-band__logo,
.house-ads-row .scorelog-band__logo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
}
.house-ads-row .wrecked-band__text .label,
.house-ads-row .scorelog-band__text .label {
    font-size: 12px;
    margin-bottom: 2px;
}
.house-ads-row .wrecked-band__text h2,
.house-ads-row .scorelog-band__text h2 {
    font-size: clamp(17px, 1.5vw, 20px);
    margin: 0 0 2px;
}
.house-ads-row .wrecked-band__text p,
.house-ads-row .scorelog-band__text p {
    font-size: 13.5px;
    line-height: 1.4;
}
.house-ads-row .wrecked-band__age {
    font-size: 12px;
    padding: 2px 7px;
    top: 8px;
    right: 8px;
}
.house-ads-row .wrecked-band__cta-wrap,
.house-ads-row .scorelog-band__cta-wrap {
    justify-self: start;
}
.house-ads-row .wrecked-band a.wrecked-band__cta,
.house-ads-row .scorelog-band a.scorelog-band__cta {
    padding: 9px 16px;
    font-size: 13.5px;
}
@media (max-width: 720px) {
    .wrecked-band {
        grid-template-columns: 1fr;
        text-align: left;
        padding: var(--sp-xl);
    }
}
.wrecked-band__lead {
    display: flex;
    align-items: center;
    gap: var(--sp-xl);
    min-width: 0;
}
.wrecked-band__logo {
    width: 96px;
    height: 96px;
    border-radius: 22px;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.25);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(228, 204, 122, 0.3);
    object-fit: cover;
}
@media (max-width: 720px) {
    .wrecked-band__logo {
        width: 72px;
        height: 72px;
        border-radius: 18px;
    }
    .wrecked-band__lead {
        gap: var(--sp-md);
    }
}
.wrecked-band__text {
    min-width: 0;
}
.wrecked-band__text .label {
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 4px;
    font-weight: 600;
}
.wrecked-band__text h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(24px, 2.4vw, 34px);
    letter-spacing: -0.01em;
    color: var(--text-light);
    line-height: 1.1;
    margin: 0 0 6px;
}
.wrecked-band__text p {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: rgba(253, 246, 227, 0.82);
    max-width: 52ch;
}
.wrecked-band__cta-wrap {
    justify-self: end;
}
@media (max-width: 720px) {
    .wrecked-band__cta-wrap {
        justify-self: start;
    }
}
.wrecked-band a.wrecked-band__cta,
.wrecked-band a.wrecked-band__cta:link,
.wrecked-band a.wrecked-band__cta:visited {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-sm);
    padding: 12px 22px;
    background: #fdf6e3;
    color: #4a1418;
    text-decoration: none;
    border: 0;
    border-radius: var(--r-xxl);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    transition:
        transform 0.15s var(--ease-spring),
        background 0.15s,
        color 0.15s;
}
.wrecked-band a.wrecked-band__cta:hover,
.wrecked-band a.wrecked-band__cta:focus {
    transform: translateY(-2px);
    background: #e4cc7a;
    color: #4a1418;
}
@media (max-width: 720px) {
    .scorelog-band {
        grid-template-columns: 1fr;
        text-align: left;
        padding: var(--sp-xl);
    }
}
.scorelog-band__lead {
    display: flex;
    align-items: center;
    gap: var(--sp-xl);
    min-width: 0;
}
.scorelog-band__logo {
    width: 96px;
    height: 96px;
    border-radius: 22px;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.25);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(228, 204, 122, 0.3);
    object-fit: cover;
}
@media (max-width: 720px) {
    .scorelog-band__logo {
        width: 72px;
        height: 72px;
        border-radius: 18px;
    }
    .scorelog-band__lead {
        gap: var(--sp-md);
    }
}
.scorelog-band__text {
    min-width: 0;
}
.scorelog-band__text .label {
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 4px;
    font-weight: 600;
}
.scorelog-band__text h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(22px, 2.2vw, 30px);
    letter-spacing: -0.01em;
    color: var(--text-light);
    line-height: 1.1;
    margin: 0 0 6px;
}
.scorelog-band__text p {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: rgba(253, 246, 227, 0.82);
    max-width: 52ch;
}
.scorelog-band__cta-wrap {
    justify-self: end;
}
@media (max-width: 720px) {
    .scorelog-band__cta-wrap {
        justify-self: start;
    }
}
.scorelog-band a.scorelog-band__cta,
.scorelog-band a.scorelog-band__cta:link,
.scorelog-band a.scorelog-band__cta:visited {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-sm);
    padding: 12px 22px;
    background: #fdf6e3;
    color: #142038;
    text-decoration: none;
    border: 0;
    border-radius: var(--r-xxl);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    transition:
        transform 0.15s var(--ease-spring),
        background 0.15s,
        color 0.15s;
}
.scorelog-band a.scorelog-band__cta:hover,
.scorelog-band a.scorelog-band__cta:focus {
    transform: translateY(-2px);
    background: #e4cc7a;
    color: #142038;
}

/* Parchment reskin: blend house ads with the page theme.
   Replaces the dark red/navy gradients with the card surface used
   elsewhere, then leans on a brand-colored left border + button to
   keep each app's identity visible. */
.wrecked-band,
.scorelog-band {
    background: var(--card-surface);
    color: var(--text-dark);
    border: 1px solid var(--card-separator);
    box-shadow: var(--shadow-card);
}
.wrecked-band {
    border-left: 4px solid #7a1f25;
}
.scorelog-band {
    border-left: 4px solid #2c4670;
}
.wrecked-band__text .label,
.scorelog-band__text .label {
    color: var(--text-secondary);
}
.wrecked-band__text h2,
.scorelog-band__text h2 {
    color: var(--text-dark);
}
.wrecked-band__text p,
.scorelog-band__text p {
    color: var(--text-secondary);
}
.wrecked-band__logo,
.scorelog-band__logo {
    background: var(--parchment-dark);
    border: 1px solid var(--card-separator);
    box-shadow: var(--shadow-card);
}
.wrecked-band__age {
    color: var(--text-dark);
    background: var(--parchment-dark);
    border-color: var(--card-separator);
}
.wrecked-band a.wrecked-band__cta,
.wrecked-band a.wrecked-band__cta:link,
.wrecked-band a.wrecked-band__cta:visited {
    background: #7a1f25;
    color: #fdf6e3;
    box-shadow: 0 4px 14px rgba(122, 31, 37, 0.25);
}
.wrecked-band a.wrecked-band__cta:hover,
.wrecked-band a.wrecked-band__cta:focus {
    background: #4a1418;
    color: #fdf6e3;
}
.scorelog-band a.scorelog-band__cta,
.scorelog-band a.scorelog-band__cta:link,
.scorelog-band a.scorelog-band__cta:visited {
    background: #2c4670;
    color: #fdf6e3;
    box-shadow: 0 4px 14px rgba(44, 70, 112, 0.25);
}
.scorelog-band a.scorelog-band__cta:hover,
.scorelog-band a.scorelog-band__cta:focus {
    background: #1a2b4a;
    color: #fdf6e3;
}

/* Mobile: compact horizontal house ads + themed spin-the-wheel banner.
   Whole house-ad card is tappable; the inner CTA <a> becomes a full
   overlay and the chevron is rendered via section ::after. */
@media (max-width: 768px) {
    .house-ads-row {
        gap: var(--sp-md);
        margin-bottom: var(--sp-xl);
    }

    .house-ads-row .wrecked-band,
    .house-ads-row .scorelog-band {
        padding: var(--sp-md) 36px var(--sp-md) var(--sp-md);
        grid-template-columns: 1fr;
        gap: 0;
    }
    .house-ads-row .wrecked-band__lead,
    .house-ads-row .scorelog-band__lead {
        gap: var(--sp-md);
        align-items: center;
    }
    .house-ads-row .wrecked-band__logo,
    .house-ads-row .scorelog-band__logo {
        width: 48px;
        height: 48px;
        border-radius: 12px;
    }
    .house-ads-row .wrecked-band__text {
        min-width: 0;
    }
    .house-ads-row .wrecked-band__text .label,
    .house-ads-row .scorelog-band__text .label {
        display: block;
        font-size: 10px;
        margin-bottom: 1px;
        letter-spacing: 0.06em;
    }
    .house-ads-row .wrecked-band__text h2,
    .house-ads-row .scorelog-band__text h2 {
        font-size: 16px;
        margin: 0 0 2px;
    }
    .house-ads-row .wrecked-band__text p,
    .house-ads-row .scorelog-band__text p {
        display: block;
        font-size: 12.5px;
        line-height: 1.4;
        margin: 0;
    }
    .house-ads-row .wrecked-band__age {
        top: 6px;
        right: 6px;
        font-size: 9px;
        padding: 1px 5px;
    }

    /* Whole-card tappable: existing <a> becomes inset overlay. */
    .house-ads-row .wrecked-band__cta-wrap,
    .house-ads-row .scorelog-band__cta-wrap {
        display: contents;
    }
    .house-ads-row .wrecked-band a.wrecked-band__cta,
    .house-ads-row .wrecked-band a.wrecked-band__cta:link,
    .house-ads-row .wrecked-band a.wrecked-band__cta:visited,
    .house-ads-row .scorelog-band a.scorelog-band__cta,
    .house-ads-row .scorelog-band a.scorelog-band__cta:link,
    .house-ads-row .scorelog-band a.scorelog-band__cta:visited {
        position: absolute;
        inset: 0;
        background: transparent;
        border: 0;
        box-shadow: none;
        padding: 0;
        font-size: 0;
        color: transparent;
        z-index: 1;
    }
    .house-ads-row .wrecked-band a.wrecked-band__cta:hover,
    .house-ads-row .wrecked-band a.wrecked-band__cta:focus,
    .house-ads-row .scorelog-band a.scorelog-band__cta:hover,
    .house-ads-row .scorelog-band a.scorelog-band__cta:focus {
        transform: none;
        background: transparent;
    }

    .house-ads-row .wrecked-band::after,
    .house-ads-row .scorelog-band::after {
        content: "\203A";
        position: absolute;
        right: var(--sp-md);
        top: 50%;
        transform: translateY(-50%);
        font-size: 22px;
        line-height: 1;
        color: var(--text-secondary);
        pointer-events: none;
    }
}
.featured-game img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out-expo);
}
.featured-game:hover img {
    transform: scale(1.04);
}
.featured-game::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 30%,
        rgba(10, 20, 14, 0.85)
    );
    pointer-events: none;
}
.featured-game .content {
    position: relative;
    padding: var(--sp-xxl);
    z-index: 2;
    width: 100%;
}
.featured-game .badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: rgba(201, 168, 76, 0.2);
    border: 1px solid rgba(201, 168, 76, 0.4);
    color: var(--gold-light);
    border-radius: var(--r-xxl);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: var(--sp-md);
}
.featured-game h3 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(22px, 3vw, 36px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    margin: 0;
}
.featured-game .meta {
    margin-top: var(--sp-sm);
    display: flex;
    gap: var(--sp-sm);
    align-items: center;
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.85);
    flex-wrap: wrap;
}
.featured-game .meta span {
    padding: 3px 10px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: var(--r-xxl);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
@media (max-width: 480px) {
    .featured-game {
        aspect-ratio: 4 / 3;
    }
    .featured-game .content {
        padding: var(--sp-xl);
    }
}
.app-band::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--felt-texture);
    mix-blend-mode: multiply;
    pointer-events: none;
}
@media (max-width: 900px) {
    .app-band {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .app-band .cta-row {
        justify-content: center;
    }
}
.app-band .label {
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold-light);
    font-weight: 600;
    margin-bottom: var(--sp-md);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.app-band h2 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(26px, 3.4vw, 42px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text-light);
    margin: 0 0 var(--sp-md);
}
.app-band p {
    margin: 0 0 var(--sp-xl);
    font-size: 16px;
    color: rgba(245, 236, 216, 0.75);
    max-width: 46ch;
    line-height: 1.5;
}
.app-band .cta-row {
    display: flex;
    gap: var(--sp-md);
    flex-wrap: wrap;
    align-items: center;
}
.app-band .cta-row .cta-button {
    margin: 0;
}
.app-band .ios-soon {
    font-size: 12px;
    color: rgba(245, 236, 216, 0.55);
    letter-spacing: 0.05em;
    flex-basis: 100%;
}

.btn-ghost-light {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-sm);
    padding: var(--sp-sm) var(--sp-xl);
    border: 1px solid rgba(245, 236, 216, 0.28);
    color: var(--text-cream);
    border-radius: var(--r-xxl);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    line-height: 1.2;
    text-decoration: none;
    background: transparent;
    cursor: pointer;
    transition:
        background 0.15s,
        border-color 0.15s;
}
.btn-ghost-light:hover {
    background: rgba(245, 236, 216, 0.08);
    border-color: rgba(245, 236, 216, 0.5);
    color: var(--text-light);
}

/* Home-v2 page content rhythm: spacing between major sections.
   :not([hidden]) on the left side of each pair so a section that stays
   hidden (the holiday picks out of season, revealed by an inline script)
   doesn't count as a neighbour. That section sits between the house ads and
   "Recently added", so the ads -> hidden holiday -> "Recently added" case is
   spanned explicitly. */
.page-content.home-v2 > .container > section:not([hidden]) + section,
.page-content.home-v2 > .container > section:not([hidden]) + .ad-slot,
.page-content.home-v2 > .container > .ad-slot + section,
.page-content.home-v2 > .container > section:not([hidden]) + .house-ads-row,
.page-content.home-v2 > .container > .house-ads-row + section,
.page-content.home-v2 > .container > .house-ads-row + section[hidden] + section {
    margin-top: var(--sp-xxxl);
}
@media (max-width: 768px) {
    .page-content.home-v2 > .container > section:not([hidden]) + section,
    .page-content.home-v2 > .container > section:not([hidden]) + .ad-slot,
    .page-content.home-v2 > .container > .ad-slot + section,
    .page-content.home-v2 > .container > section:not([hidden]) + .house-ads-row,
    .page-content.home-v2 > .container > .house-ads-row + section,
    .page-content.home-v2 > .container > .house-ads-row + section[hidden] + section {
        margin-top: var(--sp-xl);
    }
}
/* Holiday picks (between the house ads and "Recently added") take their
   spacing from the rhythm above, not from .home-lists' own margins. */
.page-content.home-v2 > .container > .home-holiday {
    margin-bottom: 0;
}

/* ==========================================================================
   Homepage v3 — spotlight, condensed filters, collection tabs
   ========================================================================== */

/* "Recently added" subtitle line, sits between the section heading and the
   white collections box (same treatment as .home-lists-header p) */
.recently-added-sub {
    margin: -8px 0 var(--sp-lg);
    opacity: 0.7;
    font-size: 0.95rem;
}

/* Spotlight: merges the old standalone "surprise card" band and the
   "featured pair" section into a single row so the top of the page reads
   as one cohesive block instead of two back-to-back bands. */
.spotlight-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: var(--sp-xl);
    align-items: stretch;
}
.spotlight-picks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-xl);
}
.spotlight-surprise::before {
    content: "";
    position: absolute;
    top: -40px;
    right: -40px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--gold-glow), transparent 70%);
    pointer-events: none;
}
.spotlight-surprise .label {
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 6px;
    font-weight: 600;
}
.spotlight-surprise .title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(20px, 2vw, 26px);
    letter-spacing: -0.01em;
    color: var(--text-light);
}
.spotlight-surprise .sub {
    margin-top: 6px;
    font-size: 14px;
    color: rgba(245, 236, 216, 0.72);
}
.spotlight-surprise .btn-gold {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: var(--sp-sm);
    padding: 12px 22px;
    background: var(--gold);
    color: var(--text-dark);
    border: 0;
    border-radius: var(--r-xxl);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14.5px;
    cursor: pointer;
    box-shadow: 0 4px 14px var(--gold-glow);
    transition:
        transform 0.15s var(--ease-spring),
        background 0.15s;
}
.spotlight-surprise .btn-gold:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
}
@media (max-width: 900px) {
    .spotlight-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 640px) {
    /* Keep the interactive Surprise Me card front and center on small
       screens; drop the "Discover" image card (Editor's pick stays) to
       match the previous mobile behaviour of trimming the image pair. */
    .spotlight-picks {
        grid-template-columns: 1fr;
    }
    .spotlight-picks .featured-game:first-child {
        display: none;
    }
}

/* Condensed category filters: primary row of category chips + a "More
   filters" chip that reveals player-count / collection chips on demand,
   instead of showing all ~16 chips at once. */
.home-filters {
    display: flex;
    flex-direction: column;
    gap: var(--sp-md);
}
.home-filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-sm);
    align-items: center;
}
.home-filters-row--secondary {
    display: none;
    padding-top: var(--sp-md);
    border-top: 1px dashed var(--card-separator);
}
.home-filters.is-expanded .home-filters-row--secondary {
    display: flex;
    animation: fadeUp 0.25s var(--ease-out-expo) both;
}
.browse-chip--toggle {
    cursor: pointer;
    border-style: dashed;
    color: var(--text-secondary);
}
.browse-chip--toggle:hover {
    color: var(--text-light);
}
.browse-chip--toggle .filter-toggle-chevron {
    font-size: 11px;
    transition: transform 0.2s;
}
.browse-chip--toggle[aria-expanded="true"] .filter-toggle-chevron {
    transform: rotate(180deg);
}

/* Collection tabs: one interactive card replaces the nine stacked
   full-width scroll rows the previous layout rendered (one per
   collection, most repeating the same popular games). */
.home-collections {
    background: var(--card-surface);
    border: 1px solid var(--card-separator);
    border-radius: var(--r-lg);
    padding: var(--sp-lg);
    box-shadow: var(--shadow-card);
}
.home-collections-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-sm);
    margin-bottom: var(--sp-lg);
    padding-bottom: var(--sp-lg);
    border-bottom: 1px solid var(--card-separator);
}
.home-collections-tab {
    display: inline-flex;
    align-items: center;
    background: var(--parchment);
    border: 1px solid var(--card-separator);
    border-radius: var(--r-xxl);
    padding: var(--sp-sm) var(--sp-lg);
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    white-space: nowrap;
    transition:
        background 0.2s,
        color 0.2s,
        border-color 0.2s;
}
.home-collections-tab:hover {
    border-color: var(--felt-medium);
}
.home-collections-tab.is-active {
    background: var(--felt-medium);
    border-color: var(--felt-medium);
    color: var(--text-light);
}
/* Inactive panels carry the `hidden` attribute (home-page.ts tab script), so
   no rule here may set `display` on the panel itself. The animation replays
   each time a panel is un-hidden. */
.home-collections-panel {
    animation: fadeUp 0.3s var(--ease-out-expo) both;
}
.home-collections-panel .collection-scroll-wrapper {
    margin: 0;
}
[data-theme="dark"] .home-collections-tab {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-cream);
}
[data-theme="dark"] .home-collections-tab.is-active {
    background: var(--felt-medium);
    color: var(--text-light);
}

/* Filters */
.home-filters-row {
    align-items: center;
}
.browse-chip__count {
    color: var(--text-label);
}
.browse-chip--toggle .filter-toggle-chevron {
    flex: none;
}

/* Spotlight: gold button text needs ink, not the theme's light text */
.spotlight-surprise .btn-gold {
    color: var(--ink-900);
}
.featured-game .badge {
    font-size: 12px;
}

/* House ads: one slim row, whole card tappable */
.house-ads-row {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-md);
    margin-bottom: var(--sp-xl);
}
@media (max-width: 768px) {
    .house-ads-row {
        grid-template-columns: 1fr;
    }
}
.house-ads-row .wrecked-band,
.house-ads-row .scorelog-band {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--sp-md);
    min-height: 64px;
    padding: var(--sp-sm) 40px var(--sp-sm) var(--sp-sm);
    border-left-width: 1px;
    border-radius: var(--r-lg);
    box-shadow: none;
}
.house-ads-row .wrecked-band__lead,
.house-ads-row .scorelog-band__lead {
    flex: 1;
    min-width: 0;
    gap: var(--sp-md);
    align-items: center;
}
.house-ads-row .wrecked-band__logo,
.house-ads-row .scorelog-band__logo {
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 10px;
}
.house-ads-row .wrecked-band__text,
.house-ads-row .scorelog-band__text {
    min-width: 0;
}
.house-ads-row .wrecked-band__text .label,
.house-ads-row .scorelog-band__text .label {
    display: none;
}
.house-ads-row .wrecked-band__text h2,
.house-ads-row .scorelog-band__text h2 {
    font-size: 15px;
    margin: 0;
}
.house-ads-row .wrecked-band__text p,
.house-ads-row .scorelog-band__text p {
    font-size: 13px;
    line-height: 1.35;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.house-ads-row .wrecked-band__age {
    position: static;
    order: 2;
    flex: none;
    font-size: 12px;
    padding: 1px 6px;
}
.house-ads-row .wrecked-band__cta-wrap,
.house-ads-row .scorelog-band__cta-wrap {
    display: contents;
}
.house-ads-row .wrecked-band a.wrecked-band__cta,
.house-ads-row .wrecked-band a.wrecked-band__cta:link,
.house-ads-row .wrecked-band a.wrecked-band__cta:visited,
.house-ads-row .scorelog-band a.scorelog-band__cta,
.house-ads-row .scorelog-band a.scorelog-band__cta:link,
.house-ads-row .scorelog-band a.scorelog-band__cta:visited {
    position: absolute;
    inset: 0;
    z-index: 1;
    padding: 0;
    border: 0;
    border-radius: var(--r-lg);
    background: transparent;
    box-shadow: none;
    font-size: 0;
    color: transparent;
}
.house-ads-row .wrecked-band a.wrecked-band__cta:hover,
.house-ads-row .scorelog-band a.scorelog-band__cta:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.04);
}
.house-ads-row .wrecked-band a.wrecked-band__cta:focus-visible,
.house-ads-row .scorelog-band a.scorelog-band__cta:focus-visible {
    outline-offset: -3px;
}
.house-ads-row .wrecked-band::after,
.house-ads-row .scorelog-band::after {
    content: "\203A";
    position: absolute;
    right: var(--sp-md);
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    line-height: 1;
    color: var(--text-secondary);
    pointer-events: none;
}

.recently-added-sub {
    opacity: 1;
    color: var(--text-secondary);
}

/* App band */
.app-band h2 {
    margin-top: 0;
}
.featured-game .badge {
    background: rgba(20, 16, 10, 0.72);
    border-color: rgba(228, 204, 122, 0.55);
}
.spotlight-surprise .btn-gold {
    min-height: 44px;
}
/* Light theme: orange text links need 4.5:1 on cream */
:root:not([data-theme="dark"]) .home-section-head .view-all {
    color: var(--accent-strong);
}

/* "Built for the table": four playing cards fanned on the app band felt */
.app-band__hand {
    grid-column: 1 / -1;
    margin-bottom: var(--sp-xl);
    padding-bottom: clamp(24px, 4vw, 48px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.25);
}
.app-band__hand > h3 {
    margin: 0 0 clamp(20px, 3vw, 36px);
    text-align: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.2rem, 2.2vw, 1.5rem);
    color: var(--text-light);
}
.why-hand {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}
.hand-card {
    position: relative;
    flex: 0 1 250px;
    min-height: 350px;
    margin-inline: 6px;
    padding: 68px 22px 56px;
    background: #fefcf7;
    background-image: linear-gradient(160deg, #fffdf8, #f3ead9);
    color: #2c2416;
    border-radius: 14px;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.25),
        0 14px 28px rgba(0, 0, 0, 0.35);
    text-align: left;
    transform-origin: 50% 120%;
    transition:
        transform 0.35s var(--ease-out-expo),
        box-shadow 0.35s var(--ease-out-expo);
}
.hand-card:nth-child(1) {
    transform: rotate(-7deg) translateY(14px);
}
.hand-card:nth-child(2) {
    transform: rotate(-2.5deg);
}
.hand-card:nth-child(3) {
    transform: rotate(2.5deg);
}
.hand-card:nth-child(4) {
    transform: rotate(7deg) translateY(14px);
}
.hand-card:hover,
.hand-card:focus-within {
    transform: rotate(0) translateY(-14px);
    z-index: 2;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.25),
        0 22px 40px rgba(0, 0, 0, 0.45);
}
.hand-card.is-red {
    --suit: var(--suit-red);
}
.hand-card {
    --suit: #2c2416;
}
.hand-card__index {
    position: absolute;
    top: 12px;
    left: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 20px;
    line-height: 1;
    color: var(--suit);
}
.hand-card__index--end {
    top: auto;
    left: auto;
    right: 14px;
    bottom: 12px;
    transform: rotate(180deg);
}
.hand-card__pip {
    position: absolute;
    right: 14px;
    top: 8px;
    font-size: 88px;
    line-height: 1;
    color: var(--suit);
    opacity: 0.09;
    pointer-events: none;
}
.hand-card h3 {
    position: relative;
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
    color: #2c2416;
}
.hand-card p {
    position: relative;
    margin: 0;
    font-size: 14.5px;
    line-height: 1.5;
    color: #5a5248;
}
@media (max-width: 900px) {
    .why-hand {
        flex-wrap: wrap;
        gap: var(--sp-lg);
        align-items: stretch;
    }
    .hand-card {
        flex: 1 1 240px;
        min-height: 0;
        margin-inline: 0;
    }
    .hand-card:nth-child(n) {
        transform: none;
    }
    .hand-card:hover,
    .hand-card:focus-within {
        transform: translateY(-4px);
    }
}
@media (max-width: 520px) {
    .why-hand {
        flex-direction: column;
    }
    .hand-card {
        flex: none;
        padding: 20px 20px 20px 56px;
    }
    .hand-card__pip,
    .hand-card__index--end {
        display: none;
    }
}
@media (prefers-reduced-motion: reduce) {
    .hand-card:hover,
    .hand-card:focus-within {
        transform: none;
    }
}

/* Continue browsing: one compact row of recent games (returning visitors only) */
.continue-browsing {
    display: flex;
    align-items: center;
    gap: var(--sp-lg);
    margin-bottom: var(--sp-xl);
}
.continue-browsing[hidden] {
    display: none;
}
.continue-browsing__title {
    flex: none;
    margin: 0;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}
.continue-browsing__row {
    display: flex;
    gap: var(--sp-sm);
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.continue-browsing__row::-webkit-scrollbar {
    display: none;
}
.continue-chip {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: var(--sp-sm);
    max-width: 220px;
    min-height: 44px;
    padding: 4px 14px 4px 4px;
    background: var(--card-surface);
    border: 1px solid var(--card-separator);
    border-radius: var(--r-xxl);
    font-family: var(--font-display);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    transition: border-color 0.2s;
}
.continue-chip:hover {
    border-color: var(--gold);
}
.continue-chip img {
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}
.continue-chip span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
@media (max-width: 600px) {
    .continue-browsing {
        flex-direction: column;
        align-items: stretch;
        gap: var(--sp-sm);
    }
}

/* In the home felt band: centred above the search, cream chips on felt. */
.hero .continue-browsing {
    flex-direction: column;
    align-items: center;
    gap: var(--sp-sm);
    max-width: 600px;
    margin: 0 auto var(--sp-lg);
}
.felt-bg .continue-browsing__title {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-light);
}
.hero .continue-browsing__row {
    max-width: 100%;
    padding: 2px 2px 8px;
}
/* Mouse users can't swipe, so give them a thin scrollbar to drag (the home
   page script also maps the vertical wheel to horizontal scroll). */
@media (hover: hover) and (pointer: fine) {
    .continue-browsing__row {
        scrollbar-width: thin;
        scrollbar-color: var(--gold) transparent;
    }
    .continue-browsing__row::-webkit-scrollbar {
        display: block;
        height: 6px;
    }
    .continue-browsing__row::-webkit-scrollbar-thumb {
        background: var(--gold);
        border-radius: 3px;
    }
}
.felt-bg a.continue-chip,
.felt-bg a.continue-chip:hover {
    color: var(--ink-900);
    background: var(--card-surface);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}
[data-theme="dark"] .felt-bg a.continue-chip,
[data-theme="dark"] .felt-bg a.continue-chip:hover {
    background: #fefaf0;
}

/* Home panels sit one step darker than the cards inside them */
.home-collections {
    background: var(--parchment-dark);
}
.home-collections .collection-scroll-wrapper::after {
    background: linear-gradient(to right, transparent, var(--parchment-dark));
}
.home-collections .collection-scroll-wrapper::before {
    background: linear-gradient(to left, transparent, var(--parchment-dark));
}

/* Curated Collections phone list (home-page.ts): below 640px each panel shows
   a compact ranked list of its top games plus a "See all N" link instead of
   the swipe rail; 640px and up keeps the rail unchanged. Both are in the
   markup and swapped by this media query alone (no script, no layout shift);
   the hidden one's lazy images are never fetched. */
.collection-rank,
.collection-rank__all {
    display: none;
}
@media (max-width: 639.98px) {
    /* The section heading's "View all" repeats the panel's "See all N". */
    #collections .home-section-head .view-all {
        display: none;
    }
    .home-collections.home-collections--tabbed {
        padding-bottom: 0;
        overflow: hidden;
        background: var(--card-surface);
    }
    .home-collections-panel .collection-scroll-wrapper {
        display: none;
    }
    .collection-rank {
        display: block;
        list-style: none;
        margin: calc(var(--sp-lg) * -1 + var(--sp-xs)) calc(var(--sp-lg) * -1) 0;
        padding: 0;
    }
    .collection-rank > li {
        margin: 0;
    }
    .collection-rank > li + li {
        border-top: 1px solid var(--card-separator);
    }
    .collection-rank__row {
        display: grid;
        grid-template-columns: 20px 56px minmax(0, 1fr);
        align-items: center;
        column-gap: var(--sp-md);
        min-height: 72px;
        padding: var(--sp-sm) var(--sp-lg);
        color: var(--text-dark);
        text-decoration: none;
    }
    .collection-rank__row:hover,
    .collection-rank__row:active {
        background: var(--parchment);
    }
    .collection-rank__row:focus-visible {
        outline-offset: -3px;
    }
    .collection-rank__n {
        font-family: var(--font-display);
        font-size: 19px;
        font-weight: 700;
        text-align: center;
        /* --gold-deep is ~3.2:1 on --card-surface; this clears 4.5:1. */
        color: #876c1f;
    }
    .collection-rank__thumb {
        display: block;
        width: 56px;
        height: 56px;
        border-radius: var(--r-md);
        object-fit: cover;
        background: var(--card-separator);
    }
    .collection-rank__text {
        display: flex;
        flex-direction: column;
        gap: var(--sp-xs);
        min-width: 0;
    }
    .collection-rank__title {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
        overflow-wrap: anywhere;
        font-family: var(--font-display);
        font-size: 16px;
        font-weight: 600;
        line-height: 1.25;
    }
    /* 12px with 6px gaps keeps the longest locale (nl: "Gemiddeld",
       "Makkelijk") on one line at 360px; narrower phones wrap rather than
       clip. */
    .collection-rank__meta.game-card-meta {
        gap: 2px 6px;
        margin: 0;
        padding: 0;
        font-size: 12px;
    }
    .collection-rank__meta li {
        gap: var(--sp-xs);
        margin: 0;
    }
    .collection-rank__all {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        min-height: 48px;
        margin-inline: calc(var(--sp-lg) * -1);
        border-top: 1px solid var(--card-separator);
        font-size: 15px;
        font-weight: 700;
        color: var(--accent-strong);
        text-decoration: none;
    }
    .collection-rank__all:hover {
        color: var(--accent-strong-hover);
    }
    [data-theme="dark"] .collection-rank__n {
        color: var(--gold-light);
    }
    [data-theme="dark"] .collection-rank__all {
        color: var(--accent);
    }
    [data-theme="dark"] .collection-rank__all:hover {
        color: var(--accent-hover);
    }
}
