/* Picture-first Minecraft reference shelf. Only the visible page loads images. */
.mc-library{position:fixed;inset:0;z-index:2900;background:#071724eb;padding:12px;display:grid;place-items:center;touch-action:auto;color:#f0f8fc;font:15px system-ui}.mc-library[hidden]{display:none}.mc-library-shell{width:min(1050px,100%);height:100%;max-height:960px;background:#102c3c;border:1px solid #7ac8dd77;border-radius:20px;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 20px 80px #0007}.mc-library header{padding:14px 16px 8px;display:flex;align-items:center;flex-wrap:wrap;gap:10px;background:#183c4d}.mc-library h2{font-size:21px;flex:1;margin:0}#cosmic-playground .mc-library button{border:1px solid #69a8b4;border-radius:10px;background:#244c5f;color:#f4fcff;min-height:44px;padding:10px;font:700 14px system-ui;cursor:pointer;touch-action:manipulation}#cosmic-playground .mc-library button:disabled{opacity:.5;cursor:default}#cosmic-playground .mc-library button[aria-pressed=true]{background:#b0e8bf;color:#123c32;border-color:#d8ffe6}.mc-library input{width:100%;box-sizing:border-box;border:1px solid #70a9bc;border-radius:10px;background:#081e2d;color:#fff;min-height:44px;padding:10px;font:16px system-ui}.mc-library nav{display:flex;gap:7px;overflow-x:auto;width:100%;padding-bottom:4px}#cosmic-playground .mc-library nav button{flex:0 0 auto;display:flex;align-items:center;gap:6px;min-height:52px}.mc-library nav img{width:32px;height:32px;object-fit:contain}.mc-library-body{overflow:auto;flex:1;min-height:0;padding:12px 16px;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.mc-library-body>p{margin:4px 0 12px;color:#c6dfdf}.mc-picture-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.mc-picture-grid article{background:#dce8e4;border:2px solid #749da0;border-radius:14px;padding:7px;display:flex;flex-direction:column;gap:5px}.mc-picture-open{background:transparent!important;border:0!important;color:#203e43!important;flex:1;display:flex;align-items:center;flex-direction:column;gap:6px;min-width:0}.mc-picture-open img{object-fit:contain;width:112px;max-width:100%;height:112px;image-rendering:pixelated;filter:drop-shadow(0 5px 4px #17393d33)}.mc-picture-open strong{font-size:16px;overflow-wrap:anywhere}.mc-picture-open small{font-size:11px;font-weight:500}.mc-library footer{background:#173a49;border-top:1px solid #5f95a5;padding:10px 16px;display:flex;align-items:center;flex-wrap:wrap;gap:9px}.mc-library footer strong{flex:1}#cosmic-playground .mc-library footer button:first-of-type{background:#b0e8bf;color:#123c32}.mc-library-status{width:100%;font-size:12px;line-height:1.4;margin:0;color:#d8e8e4}.mc-library-pages{display:flex;justify-content:center;align-items:center;gap:12px;padding:18px 0}.mc-library details{font-size:12px;color:#bbd4d8;line-height:1.6}.mc-library details a{color:#9ce7ff}.mc-library-hero{margin:20px auto;max-width:520px;padding:20px;background:#dce8e4;color:#203e43;border-radius:18px;text-align:center}.mc-library-hero>img{width:240px;height:240px;max-width:90%;object-fit:contain;image-rendering:pixelated}.mc-library-hero>button{display:block;width:100%;margin-top:15px}.mc-picture-missing{color:#33545b;font-size:12px}#cosmic-playground .mc-library button:focus-visible,.mc-library input:focus-visible{outline:3px solid #ffe39b;outline-offset:2px}@media(max-width:700px){.mc-picture-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.mc-library h2{font-size:17px}}@media(max-width:480px){.mc-library{padding:5px}.mc-library-shell{border-radius:12px}.mc-library header{padding:10px 10px 6px}.mc-library h2{font-size:16px;max-width:170px}.mc-picture-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.mc-library-body{padding:10px}.mc-library footer{padding:8px 10px}.mc-picture-open strong{font-size:14px}#cosmic-playground .mc-library nav button{font-size:12px}.mc-library nav img{width:28px;height:28px}}@media(max-height:500px){.mc-library header{padding:6px;gap:4px}.mc-library h2{font-size:16px}.mc-library input{width:36%;min-height:36px}#cosmic-playground .mc-library nav button{min-height:38px;padding:4px 8px}.mc-library nav img{width:24px;height:24px}.mc-library footer{padding:5px 10px}.mc-picture-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}

#cosmic-playground .mc-library{pointer-events:auto}#cosmic-playground .mc-library button{touch-action:manipulation}
.mc-library header{position:relative;inset:auto;width:100%;flex-shrink:0;pointer-events:auto;z-index:1}.mc-library footer{flex-shrink:0}.mc-picture-open small{color:#415d5c!important}.mc-library-body{position:relative}
@media(max-height:500px){.mc-picture-open img{width:64px;height:64px}.mc-picture-open strong{font-size:12px}.mc-picture-open small{font-size:10px}.mc-picture-grid article{padding:4px;gap:2px}#cosmic-playground .mc-library .mc-picture-grid button{padding:6px;min-height:36px;font-size:12px}}
