/* Flat covers: 220 × 310. Megamenus and detail boxes keep their separate designs. */
body .claba-library-cover{display:block;position:relative;inset:auto;width:220px!important;height:310px!important;min-height:310px;max-width:none!important;flex:none;margin:0 auto;padding:0;overflow:hidden;border:0;border-radius:7px;background:transparent;box-shadow:0 10px 20px -10px #000c;transform:none;transition:transform .2s ease,box-shadow .2s ease;isolation:isolate;line-height:0}
body .claba-library-cover>img{position:static!important;display:block!important;inset:auto!important;width:220px!important;height:310px!important;min-height:0!important;max-height:none!important;aspect-ratio:22/31!important;object-fit:fill!important;padding:0!important;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;filter:none!important;transform:none!important}
body .claba-library-cover::before{content:'';position:absolute;inset:0;z-index:1;pointer-events:none;border-radius:inherit;background:linear-gradient(-135deg,rgba(200,230,250,1),transparent 50%);background-size:200%;background-position:0% 0%;box-shadow:inset 0 10px 20px #0006;transition:background-position .2s ease}
/* Only remove older cover effects when the shared component is actually present. */
body :is(.game,.cc-cover,.sr-card-art):has(>.claba-library-cover){display:block;position:relative;aspect-ratio:auto!important;height:auto!important;min-height:0;max-height:none!important;padding:0!important;border:0!important;border-radius:7px;background:transparent!important;overflow:visible;box-shadow:none!important;transform:none!important}
body .game:has(>.claba-library-cover){-webkit-box-reflect:unset!important;width:100%;max-width:100%;margin:0}
body :is(.game,.sr-card-art):has(>.claba-library-cover)::before,body :is(.game,.sr-card-art):has(>.claba-library-cover)::after{content:none!important}
body .cc-card:has(.claba-library-cover){overflow:visible;border:0;border-radius:7px;transform:none!important}
body .cc-card:has(.claba-library-cover):is(:hover,:focus-within){position:relative;z-index:2;box-shadow:none}
body .cc-card:has(.claba-library-cover) .cc-cover-open{display:none}
body .sr-card:has(.claba-library-cover){overflow:visible}
body .claba-community-game-art:has(.claba-library-cover){filter:none;transform:none}
body .claba-community-game-art>.claba-library-cover{inset:auto;padding:0;border:0;background:transparent}
body .claba-community-game-art>.claba-library-cover+span{z-index:3}
body .pl-cover:has(.claba-library-cover){border-radius:7px;perspective:none}
body .claba-f-library{width:100%;max-width:340px;margin-inline:auto}
body .claba-f-rel-marco:has(.claba-library-cover){overflow:visible}
body .claba-f-rel-lista{padding-top:16px;padding-bottom:20px}
@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
 body .claba-library-cover:hover,body a:focus-visible .claba-library-cover{transform:perspective(50em) rotateX(10deg) scale(1.1);box-shadow:0 10px 30px -10px #000c;z-index:10}
 body .claba-library-cover:hover::before,body a:focus-visible .claba-library-cover::before{background-position:50% 0%}
}
@media(prefers-reduced-motion:reduce){body .claba-library-cover,body .claba-library-cover::before{transition:none;transform:none}}
/* The historic global !important white outline must not override search controls. */
body :is(.cc-catalog,.sr-shell,.claba-select-popup) :is(button,select,input,summary):focus-visible{outline:2px solid #59e4ee!important;outline-offset:3px}
body input[type=search]:focus,body input[type=search]:focus-visible{outline:none!important;box-shadow:none!important;border-color:#38d5e4!important}
body :is(.cc-terminal,.sr-search-entry,.pl-terminal,.claba-search-entry,.claba-context-entry):focus-within{border-color:#38d5e4!important;box-shadow:0 0 0 2px #38d5e422,0 0 20px #00dbe819!important}
body :is(.cc-filter,.cc-sort):focus-within{border-color:#38d5e4;box-shadow:0 0 0 2px #38d5e418}
body .cc-terminal input:focus,body .sr-search-entry input:focus,body .pl-terminal input:focus{border:0!important}
/* Searchable selects retain their native controls for form submission and no-JS use. */
body select.claba-select-native{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;clip:rect(0,0,0,0)!important;clip-path:inset(50%)!important;overflow:hidden!important;white-space:nowrap!important;border:0!important}
body .claba-select{display:block;position:relative;min-width:0;width:100%;line-height:1.3}
body button.claba-select-trigger{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-width:0;min-height:30px;margin:0;padding:3px 0;border:0;background:transparent;box-shadow:none;color:#f1f6ff;text-align:left;font:400 13px/1.4 'Fira Sans',sans-serif;cursor:pointer;border-radius:3px}
body .claba-select-value{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
body .claba-select-chevron{flex:none;color:#6ddfeb;font-size:18px;transition:transform .15s}
body .claba-select-trigger[aria-expanded=true] .claba-select-chevron{transform:rotate(180deg)}
body .sr-filters .claba-select{margin-top:5px;padding:5px 12px;background:#091c31;border:1px solid #267896;border-radius:5px}
body .claba-select-popup{position:fixed;z-index:100100;display:flex;flex-direction:column;gap:0;box-sizing:border-box;overflow:hidden;padding:9px;background:linear-gradient(130deg,#08253b,#041024 70%);border:1px solid #34bfd5;border-radius:9px;color:#e8f5ff;box-shadow:0 18px 55px #000b,0 0 24px #00c9ee22;font:400 14px/1.4 'Fira Sans',sans-serif}
body .claba-select-popup[hidden]{display:none!important}
body .claba-select-search{display:flex;align-items:center;gap:10px;padding:0 11px;min-height:44px;flex:none;background:#020d1c;border:1px solid #32849e;border-radius:5px;margin-bottom:8px}
body .claba-select-search:focus-within{border-color:#52dfed;box-shadow:0 0 0 2px #38d5e416}
body .claba-select-search>span{font-size:25px;color:#72eaf2}
body .claba-select-search input{min-width:0;width:100%;height:42px;padding:0;margin:0;border:0!important;background:transparent!important;color:#fff;font:400 16px/1.3 'Fira Sans',sans-serif;outline:none!important;box-shadow:none!important}
body .claba-select-search input::placeholder{color:#91b4c9}
body .claba-select-options{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#27748c #05182a}
body .claba-select-option{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:40px;padding:9px 11px;border:1px solid transparent;border-radius:4px;cursor:pointer;line-height:1.35}
body .claba-select-option>span:first-child{overflow-wrap:anywhere}
body .claba-select-option.is-highlighted,body .claba-select-option:hover{background:#12445d;border-color:#2a839b}
body .claba-select-option[aria-selected=true]{background:linear-gradient(100deg,#9e187251,#283362);color:#ffe5f7}
body .claba-select-option[aria-selected=true]>span:last-child{color:#ff9adb}
body .claba-select-status{flex:none;margin:7px 2px 0;padding:7px 3px 0;border-top:1px solid #77cbe325;color:#98b6cc;font:400 10px/1.4 'Fira Sans',sans-serif}
body .cc-more-fields{z-index:30}
@media(max-width:767px){body button.claba-select-trigger{min-height:35px;font-size:16px}body .claba-select-option{min-height:44px}body .claba-select-status{font-size:10px}body .claba-f-library{max-width:300px}}

body .claba-select-popup *{box-sizing:border-box}

body .claba-suggestions .claba-library-cover{width:31px;flex:none;border-radius:3px}
body .claba-f-juega-portada:has(>.claba-library-cover){display:flex;justify-content:center;align-items:center;gap:24px;padding:25px;background:radial-gradient(ellipse at 20% 40%,#163448,#030a18 80%)}
body .claba-f-juega-portada>.claba-library-cover{width:130px;flex:none;align-self:center}
body .claba-f-juega-portada:has(>.claba-library-cover) .claba-f-juega-caja{padding:0;min-width:0}
@media(max-width:767px){body .claba-f-juega-portada:has(>.claba-library-cover){gap:13px;padding:15px}body .claba-f-juega-portada>.claba-library-cover{width:72px}}
body .claba-select-trigger:focus-visible,body :is(.searchandfilter,.filtraje,.claba-catalog-search) :is(input,select,button):focus-visible{outline:2px solid #59e4ee!important;outline-offset:3px}
body :is(.sr-filters,.searchandfilter,.filtraje) :is(input,select):focus{border-color:#38d5e4!important}

/* Keep the surrounding layout wide enough for the fixed cover size. */
body .cc-card:has(.claba-library-cover){width:220px;justify-self:center}
body .cc-cover:has(>.claba-library-cover),body .sr-card-art:has(>.claba-library-cover){width:220px;margin-inline:auto}
body :is(.sr-grid--juegos,.sr-grid--software){grid-template-columns:repeat(auto-fit,220px);justify-content:space-evenly}
body .sr-card--featured:has(.claba-library-cover){grid-template-columns:220px minmax(0,1fr)}
body .claba-community-game-art:has(>.claba-library-cover){width:220px}
body .claba-community-game:has(.claba-library-cover){flex-direction:column!important;align-items:center!important}
body .claba-community-game:has(.claba-library-cover) .claba-community-game-copy{text-align:center}
body .claba-f-rel-lista:has(.claba-library-cover){display:flex;gap:22px;overflow-x:auto;scroll-snap-type:x proximity}
body .claba-f-rel-item:has(.claba-library-cover){width:220px;min-width:220px;flex:0 0 220px;scroll-snap-align:start}
body .shelf:has(.claba-library-cover){display:flex;flex-wrap:wrap;justify-content:space-evenly;gap:24px;padding:0}
body .shelf>.juegazos:has(.claba-library-cover){width:220px!important;flex:0 0 220px;padding:0;margin:0 0 24px}
body .claba-component-game:has(.claba-library-cover){grid-template-columns:220px minmax(0,1fr)}
body .claba-suggestions li:has(.claba-library-cover){align-items:center}
body .claba-suggestions li:has(.claba-library-cover)>span:last-child{min-width:0;overflow-wrap:anywhere}
@media(min-width:768px) and (max-width:1023px){body .cc-grid:has(.claba-library-cover){grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:767px){body .cc-grid:has(.claba-library-cover){grid-template-columns:repeat(2,minmax(0,1fr))}body .claba-community-games:has(.claba-library-cover){grid-template-columns:1fr}body .sr-card--featured:has(.claba-library-cover),body .claba-component-game:has(.claba-library-cover){grid-template-columns:1fr}body .sr-card--featured:has(.claba-library-cover) .sr-card-art{justify-self:center}body .claba-suggestions li:has(.claba-library-cover){flex-direction:column}body .claba-f-juega-portada:has(>.claba-library-cover){flex-direction:column;overflow:auto;justify-content:flex-start}}
@media(max-width:499px){body .cc-grid:has(.claba-library-cover){grid-template-columns:1fr}body .claba-community-games:has(.claba-library-cover)>li{border-right:0}}
@media(min-width:761px){body .pl-feature:has(.claba-library-cover){grid-template-columns:minmax(0,1fr) 220px}}

/* Compact recommendation and widget covers reflect light without moving. */
body :is(.rr-section,.widget,.widget-area,.cb-panel,.claba-community-games,.claba-f-rel-lista,.claba-component-game,.claba-suggestions) .claba-library-cover{transform:none!important}
@media(min-width:1024px) and (max-width:1279px){body .cc-grid:has(.claba-library-cover){grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(min-width:1280px){body .cc-grid:has(.claba-library-cover){grid-template-columns:repeat(5,minmax(0,1fr))}}
