/* A dedicated small-screen layout, independent of the desktop catalog. */
.kixo9-mobile-more{display:none}
.kixo9-search-toggle,.kixo9-search-close,.kixo9-mobile-account{display:none!important}
@media(max-width:650px){
 body.kixo9-library{--mobile-header:64px}
 body.kixo9-library .topbar{height:var(--mobile-header);padding:0 14px;align-items:center;gap:12px;background:#171923;border-bottom:1px solid #ffffff0a}
 body.kixo9-library .brand-area{width:auto;gap:8px;min-width:0}
 body.kixo9-library .topbar .brand img{width:104px;height:26px}
 body.kixo9-library .topbar .icon-button{width:44px;height:44px;flex-shrink:0}
 body.kixo9-library .header-actions{gap:4px;margin:0 0 0 auto}
 body.kixo9-library .topbar .header-actions>.kixo9-header-icon{width:32px;min-width:32px;height:44px}
 body.kixo9-library .header-actions>.pill,body.kixo9-library .header-actions>.login{display:none}
 body.kixo9-library .kixo9-search-toggle,body.kixo9-library .kixo9-search-close{display:grid!important}
 body.kixo9-library .kixo9-region-selector summary{height:44px;padding:10px;min-width:64px;background:#272a38;border-radius:12px}
 body.kixo9-library .kixo9-region-options{right:0;max-height:calc(100dvh - 92px)}
 body.kixo9-library .search{display:none;top:64px;left:14px;right:14px;height:46px;border:1px solid #3c4054;border-radius:12px;padding:0 10px 0 14px;gap:10px;background:#242736}
 body.kixo9-library .search>svg{flex-shrink:0}
 body.kixo9-library input[type=search]{font-size:16px;font-weight:400}
 body.kixo9-library .search .kixo9-search-close{width:36px;height:40px;margin-right:-6px}
 body.kixo9-library.kixo9-search-open{--mobile-header:122px}
 body.kixo9-library.kixo9-search-open .search{display:flex}
 body.kixo9-library.kixo9-search-open .topbar{align-items:flex-start;padding-top:10px}
 body.kixo9-library:not(.kixo9-layout-preview)>main{padding:calc(var(--mobile-header) + 22px) 18px 0;margin-left:0;scroll-padding-top:calc(var(--mobile-header) + 20px);scrollbar-gutter:auto}
 body.kixo9-library .sidebar{top:64px;width:min(300px,calc(100vw - 56px));padding:16px 16px calc(24px + env(safe-area-inset-bottom));overscroll-behavior:contain;border-right:1px solid #303344;background:#151720}
 body.kixo9-library .sidebar .nav-item{min-height:46px;font-size:14px;gap:14px}
 body.kixo9-library .sidebar .nav-label{color:#a5abbd;font-size:10px;letter-spacing:1.3px;margin-top:18px}
 body.kixo9-library .sidebar-footer{display:flex;gap:24px;padding-top:8px}
 body.kixo9-library .sidebar-footer a{padding:10px 0;font-size:13px}
 body.kixo9-library .kixo9-mobile-account{display:block!important}
 body.kixo9-library .kixo9-mobile-account a{background:#282b39;justify-content:center;margin:8px 0}
 body.kixo9-library.mobile-nav .nav-overlay{inset:64px 0 0;background:#05071099;backdrop-filter:blur(3px)}
 body.kixo9-library.mobile-nav>main{overflow-y:hidden}
 body.kixo9-library .skip{left:16px}
 body.kixo9-library .kixo9-home-intro{margin:0 0 24px;padding:0}
 body.home.kixo9-library .kixo9-home-intro h1{font-size:26px;line-height:1.2;letter-spacing:-.7px;max-width:22ch;text-wrap:balance}
 body.kixo9-library .kixo9-entity-header .kixo9-summary{font-size:13px;line-height:1.6;margin-top:10px;color:#afb5c7}
 body.kixo9-library .section,body.kixo9-library .section.collection,body.kixo9-library .recent-section{margin:0 0 30px;padding:0}
 body.kixo9-library .section .section-heading{min-height:36px;gap:8px;margin-bottom:10px;flex-wrap:nowrap}
 body.kixo9-library .section .section-heading h2{font-size:19px;letter-spacing:-.35px;line-height:1.35}
 body.kixo9-library .section-heading>div:not(.collection-icon):not(.shelf-controls){min-width:0;gap:2px;flex-wrap:nowrap}
 body.kixo9-library .section-heading .heading-link{gap:5px;min-width:0}
 body.kixo9-library .section-heading .heading-link>svg{width:16px;height:16px}
 body.kixo9-library .section .section-heading>.collection-icon{display:none}
 body.kixo9-library .section .shelf-controls{display:none}
 body.kixo9-library .kixo9-info{flex-shrink:0}
 body.kixo9-library .kixo9-info-button{width:36px;height:36px;border:0;border-radius:50%;background:radial-gradient(circle,transparent 7px,#72798d 7px,#72798d 8px,transparent 8px);font-size:11px;color:#b7bfd0}
 body.kixo9-library .game-card,body.kixo9-library .game-card:hover{transform:none;box-shadow:none;border-radius:12px}
 body.kixo9-library .game-card:hover img{transform:none}
 body.kixo9-library .game-row{grid-auto-columns:156px;gap:12px;scroll-padding-inline:0;overscroll-behavior-x:contain;padding:0 0 4px;margin:0}
 body.kixo9-library .game-row .game-card{aspect-ratio:auto;background:none}
 body.kixo9-library .game-row .game-play img{aspect-ratio:16/10;height:auto;border-radius:12px}
 body.kixo9-library .game-row .card-caption{position:static;transform:none;inset:auto;background:none;text-shadow:none;font-size:13px;line-height:1.4;padding:9px 0 0;font-weight:650;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
 body.kixo9-library .favorite{width:36px;height:36px;top:6px;right:6px;background:#101420d9}
 body.kixo9-library .favorite svg{width:16px;height:16px}
 body.kixo9-library .recent-row{gap:12px;padding:0 0 4px;margin:0;overscroll-behavior-x:contain}
 body.kixo9-library .recent-row .game-card{width:76px;flex-basis:76px;height:auto;aspect-ratio:auto;background:none}
 body.kixo9-library .recent-row .game-play{overflow:visible}
 body.kixo9-library .recent-row .game-play img{width:76px;height:76px;border-radius:18px}
 body.kixo9-library .recent-row .card-caption{position:static;inset:auto;transform:none;padding:8px 0 0;background:none;font-size:11px;line-height:1.35;font-weight:600;text-shadow:none;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
 /* A single swipeable highlight, with a visible preview of the next card. */
 body.kixo9-library .top-picks{display:grid;grid-template-columns:none;grid-template-rows:none;grid-auto-flow:column;grid-auto-columns:86%;gap:12px;height:auto;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:none;padding:0 0 4px;overscroll-behavior-x:contain}
 body.kixo9-library .top-picks::-webkit-scrollbar{display:none}
 body.kixo9-library .top-picks .game-card:nth-child(n){display:block;grid-area:auto;height:auto;aspect-ratio:auto;background:#191c28}
 body.kixo9-library .top-picks .game-play img{height:auto;aspect-ratio:16/10;object-fit:cover}
 body.kixo9-library .top-picks .game-card:nth-child(n) .card-caption{position:static;inset:auto;transform:none;background:none;font-size:16px;line-height:1.4;padding:13px 14px;text-shadow:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 /* Three compact picks per swipe instead of a six-row stack. */
 body.kixo9-library .kixo9-spotlight{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:none;grid-auto-flow:row;grid-auto-columns:auto;gap:12px;overflow:visible;scroll-snap-type:none;padding-bottom:0}
 body.kixo9-library .kixo9-spotlight::-webkit-scrollbar{display:none}
 body.kixo9-library .kixo9-spotlight .game-card:nth-child(n){height:auto;max-width:none;background:#191c28;border:1px solid #ffffff0a;border-radius:12px;scroll-snap-align:none}
 body.kixo9-library .kixo9-spotlight .game-play{display:flex;flex-direction:column;align-items:stretch;gap:0;padding:0;height:100%}
 body.kixo9-library .kixo9-spotlight .game-play img{width:100%;flex-basis:auto;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:11px 11px 0 0}
 body.kixo9-library .kixo9-spotlight .game-card:nth-child(n) .card-caption{font-size:13px;line-height:1.4;font-weight:650;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;padding:10px 12px;min-height:56px}
 body.kixo9-library .kixo9-spotlight .favorite{top:6px;right:6px;transform:none;background:#101420e6;width:36px;height:36px}
 /* A two-row discovery shelf lets people browse without a long wall of tiles. */
 body.kixo9-library .kixo9-discover{grid-template-columns:none;grid-template-rows:repeat(2,auto);grid-auto-flow:column;grid-auto-columns:46%;gap:18px 12px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain;padding-bottom:4px}
 body.kixo9-library .kixo9-discover::-webkit-scrollbar{display:none}
 body.kixo9-library .kixo9-discover .game-card{background:none;aspect-ratio:auto}
 body.kixo9-library .kixo9-discover .game-play img{height:auto;aspect-ratio:16/11;border-radius:12px}
 body.kixo9-library .kixo9-discover .card-caption{position:static;inset:auto;transform:none;background:none;text-shadow:none;font-size:12px;line-height:1.4;padding:9px 0 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
 body.kixo9-library .game-grid{gap:22px 12px;padding-bottom:12px}
 body.kixo9-library .game-grid .game-card{aspect-ratio:auto;margin-bottom:0;background:none}
 body.kixo9-library .game-grid .game-play img{height:auto;aspect-ratio:16/11;border-radius:12px}
 body.kixo9-library .game-grid .card-caption{position:static;inset:auto;white-space:normal;font-size:13px;padding:9px 0 0;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
 body.kixo9-library .category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 body.kixo9-library .category-tile{padding:16px;min-width:0;gap:10px;font-size:13px}
 body.kixo9-library .kixo9-developer-grid .category-tile{min-height:144px;justify-content:flex-start}
 body.kixo9-library .kixo9-developer-grid .kixo9-term-logo{width:100%;height:58px}
 body.kixo9-library .kixo9-entity-header h1{font-size:26px;line-height:1.25;overflow-wrap:anywhere}
 body.kixo9-library .kixo9-breadcrumbs{font-size:12px;margin-bottom:14px}
 body.kixo9-library .kixo9-panel{padding:18px;border-radius:14px;margin-bottom:20px}
 body.kixo9-library .kixo9-panel h2{font-size:20px}
 body.kixo9-library .kixo9-player-toolbar{flex-wrap:wrap;gap:8px;padding:12px}
 body.kixo9-library .kixo9-player-toolbar>span{flex-basis:100%;font-size:12px}
 body.kixo9-library .kixo9-player-toolbar .pill{font-size:13px;min-height:44px;gap:8px;padding:10px 14px}
 body.kixo9-library .kixo9-prose,body.kixo9-library .kixo9-editorial-content{font-size:15px;line-height:1.75}
 body.kixo9-library .kixo9-editorial{padding:0;background:none;border:0;border-radius:0}
 body.kixo9-library .kixo9-home-content{margin-top:24px;border-radius:12px}
 body.kixo9-library .kixo9-home-content summary{padding:18px 16px;gap:16px}
 body.kixo9-library .kixo9-home-content summary h2{font-size:18px;line-height:1.4}
 body.kixo9-library .kixo9-home-content .kixo9-prose{padding:0 16px 18px}
 body.kixo9-library .kixo9-sponsor-footer{margin-top:26px;padding:22px 0 calc(24px + env(safe-area-inset-bottom))}
 body.kixo9-library .kixo9-sponsors{margin-bottom:18px}
 body.kixo9-library .kixo9-sponsor-logo{flex-basis:112px;height:80px;padding:10px}
 body.kixo9-library .kixo9-sponsor-track{gap:10px}
 body.kixo9-library .kixo9-sponsor-controls button{width:36px;height:36px}
 body.kixo9-library .kixo9-footer-bottom{gap:14px;padding-top:18px}
 body.kixo9-library .kixo9-footer-bottom .kixo9-copyright{font-size:11px;line-height:1.6}
 body.kixo9-library #kixo9-age-gate{padding:26px 22px;border-radius:18px}
 body.kixo9-library #kixo9-age-gate h2{font-size:24px}
 body.kixo9-library #toast{max-width:calc(100vw - 32px);width:max-content;font-size:13px;padding:12px 16px;bottom:calc(20px + env(safe-area-inset-bottom))}
 body.kixo9-library.admin-bar .topbar{top:46px}
 body.kixo9-library.admin-bar .sidebar{top:110px}
 body.kixo9-library.admin-bar>main{padding-top:calc(var(--mobile-header) + 68px)}
}
@media(max-width:360px){
 body.kixo9-library .topbar{padding-inline:8px;gap:6px}
 body.kixo9-library .brand-area{gap:2px}
 body.kixo9-library .topbar .brand img{width:92px}
 body.kixo9-library:not(.kixo9-layout-preview)>main{padding-inline:14px}
 body.kixo9-library .section .section-heading h2{font-size:18px}
 body.home.kixo9-library .kixo9-home-intro h1{font-size:24px}
}

/* Homepage discovery: one lead choice, a short list, then a small mosaic. */
@media(max-width:650px){
 body.home.kixo9-library .section{margin-bottom:32px}
 body.home.kixo9-library [data-mobile-expanded="false"]>.kixo9-mobile-overflow{display:none!important}
 body.home.kixo9-library .kixo9-mobile-more{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;width:100%;margin-top:12px;border:1px solid #353b4c;border-radius:12px;background:transparent;color:#c9cfdf;font-size:13px;font-weight:650}
 body.home.kixo9-library .kixo9-mobile-more::after{content:'+';font-size:20px;line-height:1;color:#bda4ff}
 body.home.kixo9-library .kixo9-mobile-more[aria-expanded="true"]::after{content:'−'}
 body.home.kixo9-library .kixo9-spotlight{display:flex;flex-direction:column;gap:0;counter-reset:featured-pick}
 body.home.kixo9-library .kixo9-spotlight .game-card:nth-child(n){height:88px;max-width:none;border:0;border-bottom:1px solid #2a2e3c;border-radius:0;background:transparent;counter-increment:featured-pick}
 body.home.kixo9-library .kixo9-spotlight .game-play{flex-direction:row;align-items:center;gap:12px;padding:10px 46px 10px 0;overflow:visible}
 body.home.kixo9-library .kixo9-spotlight .game-play::before{content:counter(featured-pick,decimal-leading-zero);color:#a4acc1;font-size:12px;font-weight:700;width:20px;flex:0 0 20px}
 body.home.kixo9-library .kixo9-spotlight .game-play img{width:64px;height:64px;flex:0 0 64px;aspect-ratio:1;border-radius:12px}
 body.home.kixo9-library .kixo9-spotlight .game-card:nth-child(n) .card-caption{min-height:0;padding:0;font-size:14px;line-height:1.45}
 body.home.kixo9-library .kixo9-spotlight .favorite{top:50%;right:0;transform:translateY(-50%);background:#252b3a}

 body.home.kixo9-library .kixo9-discover{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-flow:row;grid-auto-columns:auto;grid-template-rows:none;grid-auto-rows:clamp(102px,29vw,146px);gap:10px;overflow:visible;padding:0;scroll-snap-type:none}
 body.home.kixo9-library .kixo9-discover .game-card{height:100%;aspect-ratio:auto;border-radius:14px;background:#191c28}
 body.home.kixo9-library .kixo9-discover .game-card:first-child{grid-row:span 2}
 body.home.kixo9-library .kixo9-discover .game-play{height:100%;display:block}
 body.home.kixo9-library .kixo9-discover .game-play img{width:100%;height:100%;aspect-ratio:auto;object-fit:cover;border-radius:14px}
 body.home.kixo9-library .kixo9-discover .card-caption{position:absolute;inset:auto 0 0;transform:none;display:block;padding:30px 10px 10px;background:linear-gradient(transparent,#070914f5);color:#fff;font-size:12px;line-height:1.35;text-shadow:0 1px 3px #000}
 body.home.kixo9-library .kixo9-discover .game-card:first-child .card-caption{font-size:16px;padding:40px 12px 14px;font-weight:750}
 body.home.kixo9-library .kixo9-discover .favorite{top:5px;right:5px}

 body.home.kixo9-library .game-row[data-mobile-style="tiles"]{grid-auto-columns:112px;gap:14px}
 body.home.kixo9-library .game-row[data-mobile-style="tiles"] .game-play img{height:112px;width:112px;aspect-ratio:1;border-radius:20px}
 body.home.kixo9-library .game-row[data-mobile-style="tiles"] .card-caption{font-size:12px;padding-top:10px;line-height:1.45}
 body.home.kixo9-library .game-row[data-mobile-style="posters"]{grid-auto-columns:80%;gap:12px}
 body.home.kixo9-library .game-row[data-mobile-style="posters"] .game-card{aspect-ratio:16/10;border-radius:16px;background:#191c28}
 body.home.kixo9-library .game-row[data-mobile-style="posters"] .game-play img{height:100%;aspect-ratio:auto;border-radius:16px}
 body.home.kixo9-library .game-row[data-mobile-style="posters"] .card-caption{position:absolute;inset:auto 0 0;display:block;padding:40px 14px 12px;background:linear-gradient(transparent,#090b13f2);font-size:15px;color:#fff;text-shadow:0 1px 3px #000}
 body.home.kixo9-library .game-row[data-mobile-style="list"]{grid-template-rows:repeat(2,76px);grid-auto-columns:86%;gap:10px 14px}
 body.home.kixo9-library .game-row[data-mobile-style="list"] .game-card{height:76px;background:#191c28;border-radius:12px}
 body.home.kixo9-library .game-row[data-mobile-style="list"] .game-play{display:flex;align-items:center;gap:12px;padding:8px 42px 8px 8px}
 body.home.kixo9-library .game-row[data-mobile-style="list"] .game-play img{width:60px;height:60px;flex:0 0 60px;aspect-ratio:1;border-radius:9px}
 body.home.kixo9-library .game-row[data-mobile-style="list"] .card-caption{padding:0;font-size:13px;line-height:1.4}
 body.home.kixo9-library .game-row[data-mobile-style="list"] .favorite{top:50%;transform:translateY(-50%);right:3px;background:none}
}
