/* Homepage curation uses compact cards and one native scroll surface per row. */
.home-section{margin-block:36px;min-width:0}
.home-section .store-section-heading{margin-bottom:18px;align-items:center;gap:18px}
.home-section .store-section-heading h2{margin:0;font-size:23px;line-height:1.25;letter-spacing:-.6px}
.home-section .store-section-heading p{margin:8px 0 0;font-size:12px;color:var(--s-muted)}
.home-section-actions{display:flex;align-items:center;gap:20px;flex-shrink:0}
.home-section-actions>a{font-size:11px;color:var(--s-muted);display:flex;align-items:center;gap:8px;white-space:nowrap}
.home-section-actions>a .ico{width:14px;height:14px}
.home-section .rail-buttons{display:flex;gap:7px;flex-shrink:0}
.home-section .rail-buttons button{width:32px;height:32px;display:grid;place-items:center;border:1px solid var(--s-line);border-radius:50%;color:var(--s-text);background:var(--s-surface);cursor:pointer}
.home-section .rail-buttons .ico{width:15px;height:15px}
.home-section .rail-buttons button:hover{color:var(--accent);border-color:var(--accent)}
.rail-play-shape,[data-rail-pause][aria-pressed=true] .rail-pause-shape{display:none}
[data-rail-pause][aria-pressed=true] .rail-play-shape{display:block}
.store-body .home-rail{display:flex;gap:18px;overflow-x:auto;overflow-y:hidden;padding:0 1px 12px;scrollbar-width:thin;scrollbar-color:color-mix(in srgb,var(--s-muted) 24%,transparent) transparent;overscroll-behavior-inline:contain;scroll-behavior:auto;min-width:0;direction:inherit}
.store-body .home-rail>.product-card{flex:0 0 calc((100% - 54px)/4);min-width:0;align-self:stretch;margin:0;scroll-snap-align:none;transform:none;box-shadow:none;content-visibility:visible}
.store-body .home-rail>.product-card:hover{border-color:color-mix(in srgb,var(--accent) 50%,var(--s-line));transform:none}
.store-body .home-rail .product-photo{position:relative;height:auto;aspect-ratio:1.65;overflow:hidden}
.store-body .home-rail .product-image,.store-body .home-rail .product-card>.product-image{width:100%;height:100%;display:block;object-fit:cover}
.store-body .home-rail .product-info{display:flex;flex-direction:column;padding:15px;gap:0;min-height:220px}
.store-body .home-rail .product-tag{order:0;margin:0;font-size:10px;min-height:20px;gap:5px}
.store-body .home-rail .product-tag>span{font-size:9px;padding:3px 5px;max-width:45%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.store-body .home-rail .product-info h3{order:1;font-size:12px;line-height:18px;min-height:36px;height:36px;margin:10px 0 12px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;letter-spacing:0}
.store-body .home-rail .product-seller{order:2;min-height:30px;margin:0 0 14px;gap:8px}
.store-body .home-rail .product-seller strong{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:220px}
.store-body .home-rail .product-seller small{font-size:9px}
.store-body .home-rail .product-seller img,.store-body .home-rail .product-seller .merchant-avatar{width:26px;height:26px;flex-basis:26px;border-radius:8px}
.store-body .home-rail .product-bottom{order:3;margin-top:auto;padding:0;border:0;min-height:47px;gap:8px}
.store-body .home-rail .product-bottom>div>small,.store-body .home-rail .price-signal,.store-body .home-rail .boost-label,.store-body .home-rail .promotion-tags{display:none}
.store-body .home-rail .product-bottom strong{font-size:22px;line-height:27px;color:var(--s-text);letter-spacing:-.6px}
.store-body .home-rail .price-comparison{display:flex;gap:7px;align-items:center;margin-top:3px;line-height:14px}
.store-body .home-rail .price-comparison del{font-size:10px;color:var(--s-muted)}
.store-body .home-rail .price-comparison b{font-size:9px}
.store-body .home-rail .product-arrow{width:25px;height:25px;flex-shrink:0}
.store-body .home-rail .product-arrow .ico{width:12px;height:12px}
.store-body .home-rail .showcase-badge{inset:10px auto auto 10px;gap:5px;padding:5px 7px;border-radius:6px;background:#332711e8;color:#f7db96;border:1px solid #d3ae6655;font-size:9px;line-height:12px;box-shadow:none}
.store-body .home-rail .showcase-badge svg{width:12px;height:12px}
.store-body .home-rail .card-stat-corner{top:auto;bottom:8px;inset-block-start:auto;inset-inline-end:8px;pointer-events:none}
.store-body .home-rail .listing-stats{font-size:8px;padding:4px 6px;gap:6px;background:#121722c9;border-color:#ffffff18;backdrop-filter:none}
.store-body .home-rail .listing-stats svg{width:10px;height:10px}
.store-body .premium-showcase.home-curated{padding:24px;border-radius:22px;border:1px solid #c4a46a30;background:linear-gradient(120deg,#d5ad5b0c,transparent 65%),var(--s-surface);margin-block:32px}
.premium-showcase.home-curated .showcase-kicker{display:block;font-size:9px;letter-spacing:1.6px;margin-bottom:8px;color:#d9b76e}
.store-body .premium-showcase.home-curated .product-card{background:var(--s-bg);border-color:#b8975e30}
.store-body .home-curated.promoted-section{background:transparent;border:0;border-radius:0;padding:0}
.home-mini-ads{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-block:30px}
.home-mini-ad{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:14px;min-width:0;min-height:148px;padding:22px;border:1px solid #b4bdd81a;border-radius:16px;text-align:start;color:var(--s-text);cursor:pointer;background:var(--s-surface)}
.home-mini-ad>div{position:relative;z-index:1;min-width:0}
.home-mini-ad small{font-size:9px;line-height:1.5;color:var(--s-muted);display:block;margin-bottom:10px}
.home-mini-ad strong{display:block;font-size:19px;line-height:1.25;max-width:220px;letter-spacing:-.4px}
.home-mini-ad>div>span{display:flex;align-items:center;gap:7px;font-size:10px;margin-top:14px;color:var(--s-muted)}
.home-mini-ad .ico{width:13px;height:13px}
.home-mini-ad .catalog-visual.game-brand{width:72px;height:72px;--mark-height:72px;flex:none;transform:rotate(8deg);transition:transform .25s}
.home-mini-ad:hover .catalog-visual.game-brand{transform:rotate(0) translateY(-3px)}
.home-ad-accounts{background:linear-gradient(115deg,#d977ae16,transparent 85%),var(--s-surface)}
.home-ad-skins{background:linear-gradient(115deg,#dfac5816,transparent 85%),var(--s-surface)}
.home-ad-gift{background:linear-gradient(115deg,#758fe916,transparent 85%),var(--s-surface)}
.home-small-campaigns .campaign-pair{margin-block:30px;gap:18px}
.home-small-campaigns .campaign{min-height:160px;height:160px;border-radius:17px}
.home-small-campaigns .campaign h2{font-size:23px}
.home-small-campaigns .campaign-copy{padding:23px}
.home-gift-section>.home-section{margin-top:24px}
.home-gift-section>.home-section>.store-section-heading{display:flex;justify-content:flex-end}
.home-gift-section>.home-section>.store-section-heading>div:first-child{display:none}
.store-body .home-contain-card .product-photo{background:#f4f5fa}
.store-body .home-contain-card .product-image{object-fit:contain;padding:12px}
@media(min-width:1920px){.store-body .home-rail>.product-card{flex-basis:calc((100% - 90px)/6)}}
@media(max-width:1100px){.store-body .home-rail>.product-card{flex-basis:calc((100% - 36px)/3)}.home-mini-ad{padding:18px}.home-mini-ad .catalog-visual.game-brand{width:54px;height:54px;--mark-height:54px}.home-mini-ad strong{font-size:16px}.home-section-actions>a{display:none}}
@media(max-width:700px){.store-body .home-rail{gap:12px}.store-body .home-rail>.product-card{flex-basis:calc((100% - 12px)/2)}.home-mini-ads{grid-template-columns:1fr;gap:10px}.home-mini-ad{min-height:114px;padding:18px 21px}.home-mini-ad strong{font-size:20px}.home-mini-ad small{margin-bottom:6px}.home-mini-ad>div>span{margin-top:8px}.home-mini-ad .catalog-visual.game-brand{width:64px;height:64px;--mark-height:64px}.home-section .store-section-heading h2{font-size:19px}.home-section .store-section-heading{gap:10px}.home-section .rail-buttons{gap:4px}.home-section .rail-buttons button{width:28px;height:28px}.home-section .store-section-heading p{max-width:240px;font-size:11px}.store-body .premium-showcase.home-curated{padding:17px 12px;border-radius:17px}.home-section{margin-block:27px}.store-body .home-rail .product-info{padding:11px;min-height:210px}.store-body .home-rail .product-bottom strong{font-size:18px}.store-body .home-rail .product-seller strong{max-width:110px}.store-body .home-rail .product-info h3{font-size:11px;line-height:17px;min-height:34px;height:34px;margin-top:7px}.store-body .home-rail .product-tag>span{display:none}.store-body .home-rail .card-stat-corner{inset-block-start:auto;bottom:7px;inset-inline-end:7px}.store-body .home-rail .listing-stats{font-size:7px;gap:3px;padding:3px 4px}.store-body .home-rail .showcase-badge{top:7px;left:7px;font-size:8px;padding:3px 5px}.store-body .home-rail .showcase-badge svg{width:10px;height:10px}.home-small-campaigns .campaign-pair{grid-template-columns:1fr}.home-small-campaigns .campaign{height:138px;min-height:138px}.home-small-campaigns .campaign h2{font-size:21px}}
@media(max-width:350px){.store-body .home-rail>.product-card{flex-basis:78%}.home-section .store-section-heading h2{font-size:17px}.home-section .rail-buttons button{width:26px;height:26px}.home-section .rail-buttons [data-rail-pause]{display:none}}
@media(prefers-reduced-motion:reduce){.home-mini-ad .catalog-visual.game-brand{transition:none;transform:none!important}}

.store-body .home-rail .item-card .product-image{object-fit:contain;padding:10px;background:#f1f3f9}

.store-body .home-rail .card-stat-corner{display:flex;align-items:center;line-height:1;padding:5px 6px;background:#111b2ddf}
.store-body .home-rail .listing-stats{padding:0;background:none}
.store-body .home-rail .listing-stats strong,.store-body .home-rail .listing-stats span{font-size:9px;line-height:1}
@media(max-width:700px){.store-body .home-rail .listing-stats strong,.store-body .home-rail .listing-stats span{font-size:7px}.store-body .home-rail .listing-stats svg{width:9px;height:9px}.store-body .home-rail .card-stat-corner{padding:4px}}
@media(max-width:1100px){.home-section-actions>.text-button{display:none}}

/* Keep pending photos visibly pending; never present a broken photo as a finished home card. */
.store-body .home-rail .product-card[data-media-state=pending] .product-photo:after{content:'';position:absolute;inset:0;background:linear-gradient(110deg,#202735 20%,#323d4f 48%,#202735 75%);z-index:5;pointer-events:none}
.store-body .home-rail .product-card[data-media-state=pending] .product-photo{min-height:100px}
[data-home-section][hidden]{display:none!important}
