/* Games collection: untinted frosted glass over the forest world. */
body.library{--text:#202020;--muted:#242424;--line:#ffffffa8;--teal:#303030;--gold:#303030;color:#202020;color-scheme:light;min-height:100vh;min-height:100dvh;display:flex;flex-direction:column}
body.library::before{background-image:url('/assets/forest-world-v1.jpg?v=20261129-world1');background-position:center center;background-size:cover}
body.library::after{background:linear-gradient(180deg,#00000020 0%,#00000020 45%,#00000050 100%)}
body.library>header,body.library .catalog-panel,body.library .catalog-grid .game-card,body.library .browse-shortcuts a{border:1px solid #ffffffb3;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);box-shadow:0 10px 35px #00000024,inset 0 1px 0 #ffffffbf}
body.library>header{background:#ffffffa3;color:#202020}
body.library .catalog-title,body.library .breadcrumb,body.library .art-note{color:#fff;text-shadow:0 2px 8px #000,0 1px 3px #000}
body.library .catalog-title .subtitle,body.library .catalog-title .eyebrow{color:#fff}
body.library .browse-shortcuts a{background:#ffffff99;color:#202020;text-shadow:none;padding:12px 16px;border-radius:10px}
body.library .catalog-panel{background:rgba(255,255,255,.112);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}
body.library .catalog-grid .game-card{background:rgba(255,255,255,.65);box-shadow:0 5px 18px #0000001f,inset 0 1px 0 #ffffffc7}
body.library .card-content h2,body.library .card-content p{color:#202020}
body.library .genre,body.library .card-play{color:#303030}
body.library .badge,body.library .badge.playable{color:#303030;border-color:#00000045;background:rgba(255,255,255,.625)}
body.library .game-guide-link{color:#252525;background:rgba(255,255,255,.575);border-color:#ffffffad}
body.library .catalog-panel input,body.library .catalog-panel select,body.library .pagination button{background:rgba(255,255,255,.75);color:#202020;border-color:#00000045;box-shadow:inset 0 1px 2px #00000015;backdrop-filter:blur(2.4px);-webkit-backdrop-filter:blur(2.4px)}
body.library .catalog-panel input::placeholder{color:#3b3b3b;opacity:1}
body.library .catalog-panel select option{background:#fff;color:#202020}
body.library .category{background:rgba(255,255,255,.61);border-color:#00000045;color:#202020}
body.library .category[aria-pressed=true]{background:#333333e6;color:#fff;border-color:#222}
body.library .layout-controls{--layout-bg:#ffffff4d;--layout-text:#202020;--layout-line:#00000045;--layout-active:#333;--layout-active-text:#fff;backdrop-filter:blur(2.4px);-webkit-backdrop-filter:blur(2.4px)}
body.library>header .mcp-analytics-settings{background:none;border:0;color:inherit;font:inherit;font-size:14px;min-height:44px;padding:10px 8px;cursor:pointer;white-space:nowrap}
body.library :is(header,.catalog-panel,.browse-shortcuts) :is(a,button,input,select):focus-visible{outline:3px solid #222;outline-offset:4px}
/* Keep keyboard focus visible inside cards that clip their image corners. */
body.library .catalog-panel .catalog-grid :is(.card-link,.game-guide-link):focus-visible{outline:3px solid #222;outline-offset:-4px}
body.library .catalog-main{padding-bottom:28px}
@media(max-width:700px){body.library::before{background-position:58% center}}

/* Full-width landscape presentation of an existing playable coloring scene. */
body.library .cover.coloring-cover{width:116.5%;max-width:none;aspect-ratio:3.635;object-fit:cover;object-position:center 41%;background:none;padding:0}

body.library #result-count{color:#242424}

/* Keep the existing outer frame width; fit three readable cards inside it. */
@media(min-width:1000px){html[data-layout] body.library .catalog-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}}
@media(min-width:701px) and (max-width:999px){html[data-layout] body.library .catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}}
@media(max-width:700px){html[data-layout] body.library .catalog-grid{grid-template-columns:minmax(0,1fr)}}
body.library .catalog-panel .text-button{background:rgba(255,255,255,.5);padding:8px 12px;border-radius:8px}

/* Compact collection preview: preserve outer width and glass appearance. */
html[data-layout] body.library>header{padding:8px 20px;gap:14px;min-height:0}
html[data-layout] body.library>header nav{gap:10px}
body.library>header{flex:none}
body.library .catalog-main{flex:1;display:flex;flex-direction:column;justify-content:center;width:100%;padding-top:12px;padding-bottom:12px}
body.library .catalog-main>.catalog-panel{flex:none;width:100%}
body.library .compact-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 8px}
body.library .compact-title h1{font-size:28px;line-height:1.15;margin:0;letter-spacing:-.5px}
body.library .compact-title .results-bar{margin:0;gap:10px;flex:none}
body.library .compact-title #result-count{font-size:14px;line-height:1.35;background:#ffffffbf;padding:5px 9px;border-radius:6px;text-shadow:none}
body.library .compact-title .text-button{background:#ffffffbf;padding:6px 10px;border-radius:6px;text-shadow:none}
body.library .catalog-panel{margin-top:0;padding:10px}
body.library .catalog-panel .search-row{display:grid;grid-template-columns:minmax(180px,1fr) 155px 155px;align-items:end;gap:10px}
body.library .catalog-panel .sort-wrap{width:auto}
body.library .catalog-panel .search-row label{display:block;width:fit-content;font-size:12px;line-height:1.25;margin:0 0 3px;padding:2px 6px;background:#ffffffbf;border-radius:4px}
body.library .catalog-panel .status-filter{display:flex;flex-direction:column;align-items:stretch;font-size:12px;line-height:1.25;margin:0;padding:0;background:none;width:auto}
html[data-layout] body.library .catalog-panel .search-row input,html[data-layout] body.library .catalog-panel .search-row select{min-height:34px;height:34px;margin:0;padding:6px 10px;font-size:14px;line-height:1.2;width:100%}
body.library .catalog-panel .status-filter select{margin-top:3px}
body.library .catalog-panel .search-row label.status-filter{display:flex;flex-direction:column;align-items:stretch;width:100%;min-width:0;margin:0;padding:0;background:none}
body.library .catalog-panel .search-row>div{min-width:0}
body.library .catalog-panel .filter-row{margin-top:8px;gap:8px}
body.library .catalog-panel #categories{gap:6px}
html[data-layout] body.library .catalog-panel .category{min-height:32px;padding:5px 12px;font-size:14px;line-height:1.3}
body.library .catalog-grid{margin-top:10px}
@media(min-width:1000px){
 html[data-layout] body.library .catalog-grid{gap:12px}
 body.library .catalog-grid .cover{height:84px;aspect-ratio:auto;object-fit:cover}
 body.library .catalog-grid .card-content{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;align-content:start;align-items:center;column-gap:8px;row-gap:4px;padding:8px 10px}
 body.library .catalog-grid .genre{display:none}
 body.library .catalog-grid .card-content h2{grid-row:1;grid-column:1;font-size:20px;line-height:1.2;margin:0}
 body.library .catalog-grid .card-content>p{grid-row:2;grid-column:1/-1;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:14px;line-height:1.3;margin:0}
 body.library .catalog-grid .card-bottom{grid-row:1;grid-column:2;gap:0;align-self:start}
 body.library .catalog-grid .badge.playable{display:none}
 body.library .catalog-grid .card-play{font-size:14px;line-height:24px;padding:0}
 body.library .catalog-grid .game-guide-link{font-size:14px;line-height:18px;padding:5px 10px;min-height:29px}
}
body.library .art-note{font-size:12px;line-height:1.4;margin:8px 0 0}
@media(min-width:1000px) and (min-height:1100px){body.library .catalog-grid .cover{height:110px}}
@media(max-width:999px){body.library .compact-title h1{font-size:26px}.compact-title{flex-wrap:wrap}}
@media(max-width:700px){
 html[data-layout] body.library>header{padding:8px 12px;gap:8px}
 body.library .catalog-panel .search-row{grid-template-columns:1fr 1fr;gap:8px}
 body.library .catalog-panel .search-wrap{grid-column:1/-1}
 html[data-layout] body.library .catalog-panel .search-row input,html[data-layout] body.library .catalog-panel .search-row select{min-height:44px;height:44px}
 html[data-layout] body.library .catalog-panel .category{min-height:44px;padding:8px 12px}
 body.library .compact-title{align-items:flex-start}
 body.library .compact-title h1{font-size:25px}
}
@media(pointer:coarse){html[data-layout] body.library .catalog-panel .category,html[data-layout] body.library .catalog-panel .search-row input,html[data-layout] body.library .catalog-panel .search-row select{min-height:44px;height:auto}}
