/* Swipe through actual captures; open them without captions or chrome. */
.game-gallery{position:relative;display:block;padding:18px 24px 22px}
.media-carousel{display:flex;gap:12px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
.media-carousel::-webkit-scrollbar{display:none}
.media-carousel .media-thumb{flex:0 0 36%;scroll-snap-align:start;aspect-ratio:3/4}
.softsweep-card .media-thumb[data-gallery]>img{object-position:center top}
.softsweep-card .trailer-thumb>img{object-position:right center}
.media-carousel .trailer-play{width:48px;height:48px;top:50%}
.media-carousel .trailer-thumb::after{background:#102b7033}
.carousel-arrow{position:absolute;z-index:2;top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;width:38px;height:38px;padding:0;border:1px solid #ffffff80;border-radius:50%;background:#101d3add;color:#fff;box-shadow:0 2px 8px #102b7040}
.carousel-arrow svg{width:21px;height:21px}
.carousel-previous{left:7px}
.carousel-next{right:7px}
.carousel-arrow:hover{background:#102b70}
.carousel-arrow:disabled{visibility:hidden;opacity:0;pointer-events:none}

.media-popup{inset:0;width:100vw;height:100dvh;max-width:100vw;max-height:100dvh;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;overflow:hidden;color:#fff}
.media-popup[open]{display:flex;align-items:center;justify-content:center}
.media-popup::backdrop{background:#060c19f5;backdrop-filter:blur(8px)}
.popup-close,.popup-arrow{position:fixed;z-index:4;display:flex;align-items:center;justify-content:center;width:46px;height:46px;padding:0;border:1px solid #ffffff70;border-radius:50%;background:#101a2cdd;color:#fff}
.popup-close{top:max(14px,env(safe-area-inset-top));right:max(18px,env(safe-area-inset-right))}
.popup-close svg{width:23px;height:23px;stroke-width:2}
.popup-close:hover,.popup-arrow:hover{background:#26354e;border-color:#fff}
.popup-arrow{top:50%;transform:translateY(-50%)}
.popup-arrow svg{width:25px;height:25px}
.popup-previous{left:18px}
.popup-next{right:18px}
.media-popup :focus-visible{outline:2px solid #fdcf2e;outline-offset:5px}
.media-popup .gallery-view{width:100%;height:100%;padding:0;gap:0;display:flex;align-items:center;justify-content:center}
.media-popup .gallery-view figure{width:100%;height:100%;margin:0;display:flex;align-items:center;justify-content:center}
.media-popup .gallery-view figure img{width:auto;height:auto;max-width:calc(100vw - 112px);max-height:calc(100dvh - 28px);object-fit:contain;border:0;border-radius:5px;user-select:none;-webkit-user-drag:none;touch-action:pan-y pinch-zoom}
.media-popup .game-video{display:block;width:auto;height:auto;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);aspect-ratio:auto 6/13;margin:0;object-fit:contain;border:0;border-radius:5px;background:#000;box-shadow:none}

/* Official, unmodified store artwork; availability stays outside each badge. */
.store-buttons.store-badges{display:grid;grid-template-columns:repeat(2,max-content);justify-content:center;align-items:start;gap:10px 24px}
.store-buttons.store-badges .store-badge-button{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:12px;min-height:0;min-width:0;padding:0;margin:0;border:0;border-radius:0;background:transparent;color:#51432f;box-shadow:none}
.store-buttons.store-badges .store-badge-button:hover{background:transparent}
.store-badge-button .store-badge{display:block;max-width:none;width:auto;height:44px;object-fit:contain}
.store-badge-button .store-state{display:block;margin:0;color:#51432f;font-size:13px;font-weight:500;line-height:1.4;letter-spacing:0;white-space:nowrap}
.demo-store-choices .store-badge-button .store-state{color:#fff}
.game-availability{padding-top:10px}
.demo-cover .store-badge-button:focus-visible{outline-color:#fdcf2e!important}

@media(max-width:620px){
 .game-gallery{padding:16px 20px 20px}
 .media-carousel{gap:10px}
 .media-carousel .media-thumb{flex-basis:43%}
 .media-carousel .trailer-play{width:43px;height:43px}
 .carousel-arrow{width:34px;height:34px}
 .carousel-previous{left:5px}.carousel-next{right:5px}
 .popup-close{width:44px;height:44px;top:max(12px,env(safe-area-inset-top));right:max(12px,env(safe-area-inset-right))}
 .popup-arrow{width:36px;height:36px}
 .popup-previous{left:7px}.popup-next{right:7px}
 .media-popup .gallery-view figure img{max-width:calc(100vw - 28px);max-height:calc(100dvh - 24px)}
 .store-buttons.store-badges{column-gap:20px}
 .store-buttons.store-badges .store-badge-button{gap:10px}
 .store-badge-button .store-badge{height:40px}
 .playable-demo .demo-store-choices.store-badges{grid-template-columns:max-content}
 .playable-demo[data-state="complete"] [data-demo-copy],.playable-demo[data-state="lost"] [data-demo-copy]{display:none}
}
@media(max-width:360px){
 .game-gallery{padding-inline:16px}
 .media-carousel .media-thumb{flex-basis:46%}
 .game-availability .store-buttons.store-badges{grid-template-columns:max-content}
}
@media(prefers-reduced-motion:reduce){.store-badge-button{transition:none}.media-popup::backdrop{backdrop-filter:none}}
