/* HOME_POLISH_OCT29. Halloween and the orange catalogue retain their own appearance. */
/* The old instant-result stylesheet hid every moving item and the reel marker. */
html:not([data-halloween]) .case-v2-page #roulette-section .roulette-item:not(.is-winner){visibility:visible}
html:not([data-halloween]) .case-v2-page #roulette-section .roulette-center{display:block!important}
html:not([data-halloween]):not([data-theme="orange"]) #cases-grid{gap:17px;overflow-anchor:none}
html:not([data-halloween]):not([data-theme="orange"]) #cases-grid .case-section-title{margin-top:9px}
html:not([data-halloween]):not([data-theme="orange"]) #cases-grid .md-case-outline path{transition:stroke-dashoffset 1.6s cubic-bezier(.25,.1,.2,1),opacity .35s ease}
/* ORDINARY_SCROLL_NOV1: let the browser retire layers outside an interaction. */
html:not([data-halloween]):not([data-theme="orange"]) #cases-grid .case-card-image{will-change:auto}
html:not([data-halloween]):not([data-theme="orange"]) #cases-grid .case-btn,
html:not([data-halloween]):not([data-theme="orange"]) #cases-grid .case-card:hover .case-btn {
    position:relative;isolation:isolate;overflow:hidden;
    background:linear-gradient(180deg,#ffffff24,transparent 48%,#0000001a),
        linear-gradient(115deg,var(--accent-dark),var(--accent) 32%,var(--accent-hover) 65%,var(--accent));
    background-size:100% 100%;
    border:1px solid rgba(var(--accent-rgb),.8);
    box-shadow:inset 0 1px 0 #ffffff55,inset 0 -2px 0 #00000018,
        0 4px 12px #0003,0 0 16px rgba(var(--accent-rgb),.16);
    text-shadow:0 1px 2px #0003;
    transition:filter .35s ease,transform .35s ease,box-shadow .35s ease;
}
/* A full-height light sweep stays behind the label and moves without repainting shadows. */
html:not([data-halloween]):not([data-theme="orange"]) #cases-grid .case-btn::before {
    content:'';display:block!important;position:absolute;inset:-50% -45%;
    width:auto;height:auto;border-radius:0;z-index:-1;pointer-events:none;
    background:linear-gradient(110deg,transparent 34%,#ffffff0a 41%,#ffffff66 49%,#ffffff20 56%,transparent 64%);
    opacity:.75;transform:translateX(-100%);
    animation:md-home-button-sheen 5.8s cubic-bezier(.4,0,.2,1) infinite;
    animation-delay:var(--md-button-sheen-delay,0s);
}
html:not([data-halloween]):not([data-theme="orange"]) #cases-grid .case-btn::after{display:none!important}
/* Only nearby buttons need a live animation/compositing layer during scrolling. */
html:not([data-halloween]):not([data-theme="orange"]) #cases-grid .case-card:not(.md-card-near) .case-btn::before{animation:none;transform:translateX(-100%)}
html:not([data-halloween]):not([data-theme="orange"]) #cases-grid .case-card:nth-child(3n+2){--md-button-sheen-delay:-1.9s}
html:not([data-halloween]):not([data-theme="orange"]) #cases-grid .case-card:nth-child(3n){--md-button-sheen-delay:-3.8s}
html:not([data-halloween]):not([data-theme="orange"]) #cases-grid .case-card:is(:hover,:focus-visible) .case-btn {
    transform:translateY(-1px);filter:brightness(1.08);
    box-shadow:inset 0 1px 0 #ffffff70,inset 0 -2px 0 #00000018,
        0 6px 16px #0003,0 0 24px rgba(var(--accent-rgb),.3);
}
/* Restart the sweep on card entry instead of waiting for the ambient loop. */
html:not([data-halloween]):not([data-theme="orange"]) #cases-grid .case-card:is(:hover,:focus-visible) .case-btn::before{
    opacity:1;animation:md-home-hover-sheen 1.6s cubic-bezier(.4,0,.2,1) infinite;
}
@media(prefers-reduced-motion:no-preference){
    html:not([data-halloween]):not([data-theme="orange"]):not([data-reduced-motion]):not([data-quality="performance"]) #cases-grid .case-card:is(:hover,:focus-visible)::after{
        content:'';display:block!important;position:absolute;inset:-50% -45%;
        width:auto;height:auto;border-radius:0;z-index:3;pointer-events:none;
        background:linear-gradient(110deg,transparent 34%,rgba(var(--accent-rgb),.12) 41%,#ffffff24 49%,rgba(var(--accent-rgb),.08) 56%,transparent 64%);
        animation:md-home-hover-sheen 1.6s cubic-bezier(.4,0,.2,1) infinite!important;
    }
    html:not([data-halloween]):not([data-theme="orange"]):not([data-reduced-motion]):not([data-quality="performance"])[data-page-hidden] #cases-grid .case-card::after{
        animation-play-state:paused!important;
    }
}
html:not([data-halloween]):not([data-theme="orange"]) #cases-grid .case-card:focus-visible .case-btn{outline:2px solid var(--accent-hover);outline-offset:3px}
html:not([data-halloween]):not([data-theme="orange"]) #cases-grid .case-card:active .case-btn{transform:translateY(0) scale(.985);filter:brightness(.98)}
@keyframes md-home-button-sheen{0%,35%{transform:translateX(-100%)}80%,100%{transform:translateX(100%)}}
@keyframes md-home-hover-sheen{0%{transform:translateX(-25%)}75%,100%{transform:translateX(70%)}}
html:not([data-halloween]):not([data-theme="orange"])[data-page-hidden] #cases-grid .case-btn::before{animation-play-state:paused!important}
html:not([data-halloween]):not([data-theme="orange"]):is([data-reduced-motion],[data-quality="performance"]) #cases-grid .case-btn::before{display:none!important;animation:none!important}
@media(prefers-reduced-motion:reduce){html:not([data-halloween]):not([data-theme="orange"]) #cases-grid .case-btn::before{display:none!important;animation:none!important}}
html:not([data-halloween]):not([data-theme="orange"]) #cases-grid .case-price-unit{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle}
html:not([data-halloween]):not([data-theme="orange"]) #cases-grid .case-price-unit>img{display:block;width:18px!important;height:18px!important;max-width:none;object-fit:contain;flex:none}
.md-currency-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
html:not([data-halloween]):not([data-theme="orange"]) #banner-carousel{height:var(--home-banner-height,auto);min-height:0!important;aspect-ratio:4/1;touch-action:pan-y pinch-zoom;transition:height .6s cubic-bezier(.22,1,.36,1),margin-bottom .6s ease}
html:not([data-halloween]):not([data-theme="orange"]) #banner-carousel.is-hidden{height:54px!important;min-height:0!important}
html:not([data-halloween]):not([data-theme="orange"]) #banner-carousel .banner-carousel-track{display:flex!important;height:var(--home-banner-height,100%);opacity:1;visibility:visible;transition:transform .62s cubic-bezier(.16,1,.3,1),opacity .3s ease,visibility 0s}
html:not([data-halloween]):not([data-theme="orange"]) #banner-carousel.is-hidden .banner-carousel-track{opacity:0;visibility:hidden;transition:transform .62s cubic-bezier(.16,1,.3,1),opacity .25s ease,visibility 0s .6s}
html:not([data-halloween]):not([data-theme="orange"]) #banner-carousel .banner-carousel-dots{display:flex!important;left:auto;right:18px;bottom:10px;transform:none;gap:6px;padding:3px 8px;border-radius:12px;background:#0002;opacity:1;visibility:visible;transition:opacity .25s ease}
html:not([data-halloween]):not([data-theme="orange"]) #banner-carousel .banner-carousel-dots button{position:relative;width:32px!important;height:24px;padding:0;border:0;border-radius:4px;background:transparent!important;box-shadow:none!important}
html:not([data-halloween]):not([data-theme="orange"]) #banner-carousel .banner-carousel-dots button::before{content:'';position:absolute;inset:10px 0;border-radius:4px;background:#ffffff60;transition:background .3s ease,scale .3s ease}
html:not([data-halloween]):not([data-theme="orange"]) #banner-carousel .banner-carousel-dots button:is(:hover,.is-active)::before{background:#fff}
html:not([data-halloween]):not([data-theme="orange"]) #banner-carousel .banner-carousel-dots button:focus-visible{outline:2px solid #fff;outline-offset:2px}
html:not([data-halloween]):not([data-theme="orange"]) #banner-carousel.is-hidden .banner-carousel-dots{opacity:0;visibility:hidden;pointer-events:none}
html:not([data-halloween]):not([data-theme="orange"]) #banner-carousel.is-hidden .banner-toggle{cursor:pointer}
@media(max-width:600px){html:not([data-halloween]):not([data-theme="orange"]) #cases-grid .case-section-title{margin-top:8px}html:not([data-halloween]):not([data-theme="orange"]) #banner-carousel .banner-carousel-dots{right:10px;bottom:3px;gap:5px}html:not([data-halloween]):not([data-theme="orange"]) #banner-carousel .banner-carousel-dots button{width:26px!important}}
html:not([data-halloween]):not([data-theme="orange"]):is([data-reduced-motion],[data-quality="performance"]) :is(#banner-carousel,#banner-carousel .banner-carousel-track,#banner-carousel .banner-carousel-dots,#cases-grid .case-btn,#cases-grid .case-btn::before,#cases-grid .md-case-outline path){animation:none!important;transition:none!important}
@media(prefers-reduced-motion:reduce){html:not([data-halloween]):not([data-theme="orange"]) :is(#banner-carousel,#banner-carousel .banner-carousel-track,#banner-carousel .banner-carousel-dots,#cases-grid .case-btn,#cases-grid .case-btn::before,#cases-grid .md-case-outline path){animation:none!important;transition:none!important}}
