/* Reference category template, shared by the six lists and their detail pages. */
[hidden]{display:none!important}
.category-page{color:#0b1233;--catalog-blue:#0866ff;--catalog-muted:#78859f}
.category-page[data-site-page]{background:#fff}
@media(min-width:1001px){body.category-page[data-site-page]{background:#f3faff}}
.category-page[data-site-page]>.catalog-layout{display:grid;grid-template-columns:204px minmax(0,1fr);gap:16px;align-items:stretch;width:100%;max-width:1440px;margin:0 auto;padding:18px 24px 28px;background:#f3faff}
body.category-page[data-site-page] .catalog-sidebar{display:flex;flex-direction:column;min-width:0;padding:14px 8px 10px;background:#fff;border-radius:24px}
.sidebar-title{display:flex;align-items:center;gap:14px;height:56px;padding:0 18px;margin:2px 2px 12px;border-radius:18px;background:#f1f7ff;font-size:var(--font-24);line-height:var(--line-32);white-space:nowrap}
.category-mark{display:grid;grid-template-columns:repeat(2,12px);gap:3px;flex:none}
.category-mark i{width:12px;height:12px;border-radius:4px;background:linear-gradient(#20a9ff,#0062ff)}
.catalog-categories{display:grid;gap:10px}
.category-scroll-hint{display:none}
.catalog-category{display:flex;align-items:center;gap:14px;min-width:0;min-height:58px;padding:8px 14px;border:1px solid transparent;border-radius:14px;font-size:var(--font-18);line-height:var(--line-26);white-space:nowrap;transition:background .15s}
.catalog-category img{width:36px;height:36px;object-fit:contain;flex:none}
.catalog-category.is-active{background:linear-gradient(110deg,#0573ff,#228cff);border-color:#0866ff;color:#fff;box-shadow:0 3px 8px #0866ff12}
.sidebar-chevron{margin-left:auto;font-size:var(--font-32);line-height:var(--line-40);visibility:hidden}
.is-active .sidebar-chevron{visibility:visible}
.sidebar-promo{display:block;margin:32px 2px 0;padding-top:40px;margin-top:auto}
.sidebar-promo img{width:100%;height:auto;border-radius:18px}
body.category-page[data-site-page] .catalog-layout .category-content{min-width:0;padding:0;--u:1px}
.catalog-breadcrumb{display:flex;align-items:center;flex-wrap:wrap;gap:10px;min-height:24px;margin:0 0 10px;font-size:var(--font-14);line-height:var(--line-22);color:#7e8ba2}
.catalog-breadcrumb [aria-current]{color:#152342}
.catalog-breadcrumb>span:not([aria-current]){font-size:var(--font-20);line-height:var(--line-28);color:#99a7bd}
body.category-page[data-site-page] .category-banner{height:auto;aspect-ratio:1169/253;border-radius:22px;overflow:hidden;background:#ddf3ff}
.category-banner>a,.category-banner img{display:block;width:100%;height:100%}
.category-banner img{object-fit:contain}
.catalog-panel{margin-top:12px;padding:14px;border-radius:22px;background:#fff}
.catalog-heading{display:flex;align-items:center;gap:18px;min-height:46px}
.category-identity{display:flex;align-items:center;gap:12px;min-width:0;flex:1}
.category-identity>img{width:46px;height:46px;object-fit:contain;flex:none}
body.category-page[data-site-page] .category-identity h1{flex:none;margin:0;font-size:var(--font-32);line-height:var(--line-40);white-space:nowrap}
.category-identity p{margin:0 0 0 4px;font-size:var(--font-14);line-height:var(--line-22);color:var(--catalog-muted)}
.catalog-tools{display:flex;align-items:center;gap:12px;flex:none;max-width:100%}
body.category-page[data-site-page] .search-panel{display:flex;flex-wrap:nowrap;align-items:center;gap:10px;width:240px;height:42px;margin:0;padding:0 14px;border:1px solid #ebf1fb;border-radius:24px;background:#f5f9ff;color:#8390ab}
.search-symbol{display:block;position:relative;width:15px;height:15px;margin-right:2px;border:2px solid #8795af;border-radius:50%;flex:none}
.search-symbol:after{content:"";position:absolute;width:7px;height:2px;right:-5px;bottom:-3px;transform:rotate(48deg);border-radius:2px;background:#8795af}
.search-panel input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:#283957;font-size:var(--font-14);line-height:var(--line-22)}
.search-panel input::placeholder{color:#8b98b1}
.search-panel input::-webkit-search-cancel-button{display:none}
.search-panel:focus-within{border-color:#0866ff;box-shadow:0 0 0 2px #0866ff14}
body.category-page[data-site-page] .search-panel input:focus-visible{outline:none}
#clear-search{width:24px;height:28px;flex:none;padding:0;cursor:pointer;color:#7282a0;font-size:var(--font-24);line-height:var(--line-32)}
.catalog-tools select{height:42px;max-width:130px;border:1px solid #e2eaf6;border-radius:14px;background:#fff;color:#15203b;padding:0 30px 0 15px;font-size:var(--font-14);line-height:var(--line-22);cursor:pointer}
body.category-page[data-site-page] .search-toggle{display:none}
body.category-page[data-site-page] .filter-bar{display:flex;flex-wrap:wrap;gap:8px;max-width:none;margin:14px 6px 18px}
body.category-page[data-site-page] .filter-bar button{display:inline-flex;justify-content:center;align-items:center;min-width:84px;height:40px;padding:0 20px;border:1px solid transparent;border-radius:25px;background:#f2f5fa;color:#192441;font-size:var(--font-16);line-height:var(--line-24);cursor:pointer}
body.category-page[data-site-page] .filter-bar button[aria-pressed="true"]{background:var(--catalog-blue);border-color:#0059ff;color:#fff;box-shadow:0 2px 5px #0866ff16}
#game-list,#detail-content{scroll-margin-top:20px}
body.category-page[data-site-page] .game-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
body.category-page[data-site-page] .game-card{display:grid;grid-template-columns:100px minmax(0,1fr);align-items:center;gap:8px;position:relative;min-width:0;min-height:140px;height:auto;padding:12px;border:1px solid transparent;border-radius:15px;text-align:left;cursor:pointer;transition:transform .15s,box-shadow .15s}
body.category-page[data-site-page] .game-icon{display:grid;place-items:center;width:100px;height:100px;min-width:0}
body.category-page[data-site-page] .game-icon img{width:100%!important;height:100%!important;object-fit:contain}
.game-copy{display:block;min-width:0}
body.category-page[data-site-page] .game-name{display:block;color:#0b1537;font-size:var(--font-20);line-height:var(--line-28);letter-spacing:0px;overflow-wrap:anywhere}
body.category-page[data-site-page] .game-description{display:block;margin:4px 0 12px;font-size:var(--font-14);line-height:var(--line-22);color:#53647f;overflow-wrap:anywhere}
.game-card-bottom{display:flex;align-items:center;justify-content:space-between;gap:6px}
.game-entry{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:32px;padding:2px 10px;border:1px solid #b8d6ff;border-radius:24px;background:#ffffffc9;white-space:nowrap;color:#0062ff;font-size:var(--font-14);line-height:var(--line-22)}
.game-entry>span{font-size:var(--font-24);line-height:var(--line-32)}
.game-kind{font-size:var(--font-12);line-height:var(--line-18);color:#53647f;white-space:nowrap}
.tone-blue{background:#ebf8ff}.tone-peach{background:#fff3f1}.tone-mint{background:#ebfbf4}.tone-purple{background:#f5f0ff}.tone-cream{background:#fff8e9}
.empty-state{padding:50px 16px;text-align:center;color:var(--catalog-muted)}
.empty-state>span{font-size:var(--font-40);line-height:var(--line-48);color:#a6bfdf}.empty-state h2{font-size:var(--font-20);line-height:var(--line-28);color:#33486d}.empty-state p{font-size:var(--font-14);line-height:var(--line-22)}
.empty-state button{margin-top:12px;min-height:44px;border-radius:24px;padding:8px 20px;background:#eaf3ff;color:#0866ff;cursor:pointer}
body.category-page[data-site-page] .toast{max-width:calc(100% - 32px);width:max-content;white-space:normal;text-align:center;bottom:28px;line-height:inherit}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
#category-dialog{width:min(420px,calc(100% - 32px));padding:20px;border:0;border-radius:22px;color:#172441;box-shadow:0 12px 60px #19385930}
#category-dialog::backdrop{background:#13274666;backdrop-filter:blur(3px)}
.dialog-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.dialog-head h2{margin:0;font-size:var(--font-24);line-height:var(--line-32)}
#close-dialog{width:44px;height:44px;font-size:var(--font-32);line-height:var(--line-40);border-radius:50%;background:#f0f5fc;cursor:pointer}
#category-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#category-links .catalog-category{padding:10px;gap:8px;font-size:var(--font-16);line-height:var(--line-24);background:#f4f8fe}
#category-links .is-active{background:#0866ff}
#category-links .sidebar-chevron{display:none}
body.category-page[data-site-page] :is(a,button,input,select):focus-visible{outline:2px solid #0866ff;outline-offset:3px}
@media(hover:hover){.catalog-category:not(.is-active):hover{background:#f0f7ff}body.category-page[data-site-page] .game-card:hover{transform:translateY(-2px);border-color:#bddaff;box-shadow:0 6px 16px #3887d914}.catalog-breadcrumb a:hover{color:#0866ff}}
@media(min-width:1001px) and (max-width:1350px){
 .category-page[data-site-page]>.catalog-layout{grid-template-columns:184px minmax(0,1fr);padding:18px 20px 28px;gap:14px}
 .sidebar-title{font-size:var(--font-20);line-height:var(--line-28);padding:0 12px;gap:10px}.catalog-category{padding:8px 10px;gap:10px;font-size:var(--font-16);line-height:var(--line-24)}
 .category-identity p{display:none}.catalog-tools .search-panel{width:215px}
 body.category-page[data-site-page] .game-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 body.category-page[data-site-page] .game-card{grid-template-columns:88px minmax(0,1fr)}body.category-page[data-site-page] .game-icon{width:88px;height:92px}
 body.category-page[data-site-page] .game-name{font-size:var(--font-18);line-height:var(--line-26)}
}
@media(max-width:1000px){
 .category-page[data-site-page]>.catalog-layout{display:flex;flex-direction:column;gap:12px;padding:0 16px 24px;flex:1}
 body.category-page[data-site-page] .catalog-sidebar{padding:0;border-radius:0;background:none}
 .sidebar-title,.sidebar-promo{display:none}
 .catalog-categories{display:flex;gap:8px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;padding:2px 0 4px}
 .catalog-categories::-webkit-scrollbar{display:none}
 .category-scroll-hint{display:flex;justify-content:flex-end;align-items:center;gap:8px;margin:4px 0 0;color:#586b85;font-size:var(--font-12);line-height:var(--line-18)}
 .catalog-categories .catalog-category{min-height:46px;padding:7px 12px;gap:6px;flex:none;border-radius:14px;background:#fff;border-color:#e9f0f9;font-size:var(--font-14);line-height:var(--line-22)}
 .catalog-categories .catalog-category.is-active{background:#0866ff;border-color:#0866ff}
 .catalog-category img{width:28px;height:28px}.catalog-categories .sidebar-chevron{display:none}
 .catalog-breadcrumb{font-size:var(--font-12);line-height:var(--line-18);gap:8px;margin-bottom:10px;min-height:20px}
 body.category-page[data-site-page] .category-banner{height:auto;min-height:0;border-radius:16px}
 .catalog-panel{padding:14px;border-radius:18px;margin-top:12px}
 .catalog-heading{flex-wrap:wrap;gap:12px}.category-identity{min-height:36px;gap:8px}
 .category-identity>img{width:36px;height:36px}body.category-page[data-site-page] .category-identity h1{font-size:var(--font-24);line-height:var(--line-32)}
 .category-identity p{font-size:var(--font-12);line-height:var(--line-18)}.catalog-tools{gap:8px}
 body.category-page[data-site-page] .search-panel{width:200px;height:40px}.search-panel input{font-size:var(--font-12);line-height:var(--line-18)}
 .catalog-tools select{height:40px;padding-left:12px;font-size:var(--font-12);line-height:var(--line-18)}
 body.category-page[data-site-page] .filter-bar{margin:14px 0;gap:6px;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
 body.category-page[data-site-page] .filter-bar button{min-width:64px;flex:none;height:38px;min-height:38px;padding:0 16px;font-size:var(--font-14);line-height:var(--line-22)}
 body.category-page[data-site-page] .game-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 body.category-page[data-site-page] .game-card{grid-template-columns:84px minmax(0,1fr);padding:12px;gap:10px;min-height:136px;align-items:center}
 body.category-page[data-site-page] .game-icon{width:84px;height:90px}body.category-page[data-site-page] .game-name{font-size:var(--font-18);line-height:var(--line-26)}
 body.category-page[data-site-page] .game-description{font-size:var(--font-12);line-height:var(--line-18);margin:4px 0 10px;line-height:var(--line-18)}
 .game-kind{display:inline-block}.game-entry{font-size:var(--font-14);line-height:var(--line-22);min-height:36px;padding:2px 9px}
 body.category-page[data-site-page] .toast{bottom:calc(84px + env(safe-area-inset-bottom))}
}
@media(max-width:650px){
 .catalog-heading{position:relative;gap:0;justify-content:space-between}.category-identity{flex:none;max-width:calc(100% - 122px)}
 .category-identity p{display:none}.catalog-tools{gap:6px;display:contents}
 body.category-page[data-site-page] .search-toggle{display:grid;place-items:center;width:38px;height:38px;min-width:38px;min-height:38px;padding:0;margin-left:auto;border:1px solid #e4edf8;border-radius:12px;background:#f7faff;cursor:pointer}
 .catalog-tools select{max-width:106px;margin-left:6px;padding:0 6px 0 10px;border-radius:12px;height:38px}
 body.category-page[data-site-page] .search-panel{order:4;display:none;width:100%;margin-top:12px}body.category-page[data-site-page] .search-panel.is-open{display:flex}
 body.category-page[data-site-page] .game-card{grid-template-columns:1fr;gap:0;min-height:182px;padding:12px;border-radius:14px;text-align:center}
 body.category-page[data-site-page] .game-icon{width:64px;height:58px;justify-self:center;margin-bottom:6px}
 body.category-page[data-site-page] .game-name{font-size:var(--font-16);line-height:var(--line-24)}body.category-page[data-site-page] .game-description{font-size:var(--font-14);line-height:var(--line-22);min-height:40px;line-height:var(--line-22);margin:4px 0 8px}
 .game-card-bottom{justify-content:center;flex-wrap:wrap;gap:6px}.game-entry{min-height:36px;font-size:var(--font-14);line-height:var(--line-22);padding:2px 10px}
 .game-kind{padding:2px 6px;border-radius:6px;background:#ffffffa8;font-size:var(--font-12);line-height:var(--line-18)}
 body.category-page[data-site-page] .category-identity h1{font-size:var(--font-24);line-height:var(--line-32)}.category-identity>img{width:30px;height:34px}
}
@media(max-width:360px){
 .category-page[data-site-page]>.catalog-layout{padding-left:12px;padding-right:12px}.catalog-panel{padding:10px}
 .category-identity{gap:4px}body.category-page[data-site-page] .category-identity h1{font-size:var(--font-20);line-height:var(--line-28)}.category-identity>img{width:24px}
 .catalog-tools select{max-width:92px;padding-left:6px}body.category-page[data-site-page] .game-card{padding:10px 8px 12px}
}
@media(prefers-reduced-motion:reduce){.catalog-category,body.category-page[data-site-page] .game-card{transition:none}}
