/* Loot&Learn Homepage Manager — scoped styles, no header/archive changes */
.llhome{--llhome-bg:#1a1f27;--llhome-border:#313948;--llhome-card:#1a1f27;--llhome-text:#f8fafc;--llhome-muted:#aebbd0;--llhome-gold:#f6c155;--llhome-panel:#222936;width:calc(100% - 40px);max-width:1290px;margin:0 auto;padding:22px 0 56px;color:var(--llhome-text);box-sizing:border-box}
[data-color-mode="light"] .llhome,html[data-theme="light"] .llhome,body[data-theme="light"] .llhome,body.llh-theme-light .llhome,body:not(.llh-theme-dark) .llhome{color:inherit}
/* Blocksy theme variables provide reliable palette changes where supported. */
html[data-color-mode="light"] .llhome,html[data-theme="light"] .llhome,body[data-theme="light"] .llhome,body.llh-theme-light .llhome,body[data-llh-mode="light"] .llhome{--llhome-bg:#fff;--llhome-border:#dce3ed;--llhome-card:#fff;--llhome-text:#1d2939;--llhome-muted:#58677a;--llhome-panel:#f2f5fa;--llhome-gold:#9e6400}
body:has(.llh-header-shell.llh-light) .llhome{--llhome-bg:#fff;--llhome-border:#dce3ed;--llhome-card:#fff;--llhome-text:#1d2939;--llhome-muted:#58677a;--llhome-panel:#f2f5fa;--llhome-gold:#9e6400}
.llhome *{box-sizing:border-box;min-width:0}
.llhome :is(h1,h2,h3,p){margin:0}
.llhome a{text-decoration:none}
.llhome-intro{display:flex;align-items:center;gap:20px;padding:28px 30px;border:1px solid var(--llhome-border);border-radius:16px;background:var(--llhome-bg);margin:0 0 26px}
.llhome-intro-mark{display:grid;place-items:center;flex:0 0 64px;height:64px;border:1px solid var(--llhome-border);border-radius:14px;color:#f6c155;background:var(--llhome-panel);font-size:33px}
.llhome-eyebrow{display:block;margin-bottom:5px;color:var(--llhome-gold);font-size:11px;font-weight:750;letter-spacing:.09em}
.llhome-intro h1{font-size:clamp(25px,3vw,35px);line-height:1.2;font-weight:800;color:var(--llhome-text)}
.llhome-intro p{margin-top:9px;color:var(--llhome-muted);font-size:14px;line-height:1.5}
.llhome-section{margin:0 0 26px;padding:24px;border:1px solid var(--llhome-border);border-radius:16px;background:var(--llhome-bg)}
.llhome-section-heading{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:20px}
.llhome-section-id{display:flex;align-items:center;gap:13px}
.llhome-section-symbol{display:grid;place-items:center;flex:0 0 48px;width:48px;height:48px;border:1px solid var(--llhome-border);border-radius:12px;background:var(--llhome-panel);color:var(--llhome-gold);font-size:24px}
.llhome-section-heading h2{font-size:clamp(20px,2vw,25px);line-height:1.25;color:var(--llhome-text);font-weight:800}
.llhome-section-heading p{margin-top:4px;color:var(--llhome-muted);font-size:13px;line-height:1.45}
.llhome-view-all{flex:0 0 auto;display:inline-flex;align-items:center;gap:7px;border:1px solid var(--llhome-border);border-radius:10px;padding:10px 14px;color:var(--llhome-gold)!important;background:var(--llhome-panel);font-size:13px;font-weight:750;transition:transform .15s ease,border-color .15s ease}
.llhome-view-all:hover{transform:translateY(-1px);border-color:var(--llhome-gold)}
.llhome-scroller-wrap{position:relative}
.llhome-catalog-grid{display:grid;grid-auto-columns:minmax(0,calc((100% - 64px)/5));grid-auto-flow:column;gap:16px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:none;padding:2px 2px 10px;scroll-behavior:smooth}
.llhome-catalog-grid::-webkit-scrollbar{display:none}
.llhome-catalog-card{display:flex;flex-direction:column;align-items:stretch;gap:7px;min-height:250px;padding:14px;border-radius:14px;background:var(--llhome-panel);border:1px solid var(--llhome-border);color:var(--llhome-text)!important;scroll-snap-align:start;transition:transform .16s ease,border-color .16s ease}
.llhome-catalog-card:hover{transform:translateY(-2px);border-color:var(--llhome-gold)}
.llhome-catalog-image{display:flex;align-items:center;justify-content:center;width:min(100%,112px);aspect-ratio:1;margin:0 auto 4px;border:1px solid var(--llhome-border);border-radius:19px;overflow:hidden;background:var(--llhome-bg)}
.llhome-catalog-image img{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}
.llhome-placeholder{font-size:42px;color:var(--llhome-gold)}
.llhome-catalog-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;font-size:14px;font-weight:800;line-height:1.4;color:var(--llhome-text)}
.llhome-catalog-category,.llhome-catalog-version,.llhome-catalog-description{display:block;color:var(--llhome-muted);font-size:12px;line-height:1.45}
.llhome-catalog-description{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden}
.llhome-catalog-version{margin-top:auto}
.llhome-catalog-go{display:flex;justify-content:space-between;gap:5px;border-top:1px solid var(--llhome-border);padding-top:9px;margin-top:auto;font-size:12px;font-weight:800;color:var(--llhome-gold)}
.llhome-scroll-controls{display:flex;justify-content:flex-end;gap:8px;margin-top:7px}
.llhome-scroll-btn{display:grid;place-items:center;min-width:38px;min-height:34px;padding:0;border:1px solid var(--llhome-border);border-radius:9px;color:var(--llhome-text);background:var(--llhome-panel);font-size:18px;cursor:pointer}
.llhome-scroll-btn:hover{border-color:var(--llhome-gold);color:var(--llhome-gold)}
.llhome-blog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.llhome-blog-card{display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--llhome-border);border-radius:14px;background:var(--llhome-panel)}
.llhome-blog-image{display:grid;place-items:center;height:auto;aspect-ratio:16/9;overflow:hidden;background:var(--llhome-bg)}
.llhome-blog-image img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .25s ease}
.llhome-blog-card:hover .llhome-blog-image img{transform:scale(1.03)}
.llhome-blog-placeholder{display:grid;place-items:center;width:100%;height:100%;color:var(--llhome-gold);font-size:55px;background:linear-gradient(145deg,var(--llhome-panel),var(--llhome-bg))}
.llhome-blog-copy{padding:17px;display:flex;flex:1;flex-direction:column;gap:10px}
.llhome-blog-date{font-size:11px;font-weight:750;color:var(--llhome-gold)}
.llhome-blog-copy h3{font-size:16px;line-height:1.45;font-weight:800}
.llhome-blog-copy h3 a{color:var(--llhome-text)!important}
.llhome-blog-copy p{color:var(--llhome-muted);font-size:13px;line-height:1.65;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden}
.llhome-blog-read{margin-top:auto;padding-top:11px;border-top:1px solid var(--llhome-border);display:flex;align-items:center;justify-content:space-between;color:var(--llhome-gold)!important;font-size:12px;font-weight:800}
.llhome-empty{padding:22px;border:1px dashed var(--llhome-border);border-radius:10px;color:var(--llhome-muted);font-size:14px}
.llhome-empty a{color:var(--llhome-gold)!important}
@media(max-width:1020px){.llhome-catalog-grid{grid-auto-columns:calc((100% - 32px)/3)}.llhome-blog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.llhome{width:calc(100% - 24px);padding:12px 0 30px}.llhome-intro{padding:18px;gap:12px;margin-bottom:16px}.llhome-intro-mark{flex-basis:46px;height:46px;font-size:24px}.llhome-intro h1{font-size:23px}.llhome-section{padding:15px;margin-bottom:16px}.llhome-section-heading{align-items:flex-start;gap:12px}.llhome-section-symbol{flex-basis:42px;width:42px;height:42px;font-size:20px}.llhome-section-heading h2{font-size:20px}.llhome-section-heading p{font-size:12px}.llhome-view-all{padding:9px;font-size:11px;max-width:112px;text-align:center}.llhome-catalog-grid{grid-auto-columns:minmax(142px,58%);gap:12px}.llhome-catalog-card{min-height:242px;padding:12px}.llhome-catalog-image{width:94px}.llhome-blog-grid{grid-template-columns:minmax(0,1fr)}.llhome-blog-copy{padding:15px}}
@media(prefers-reduced-motion:reduce){.llhome *{scroll-behavior:auto!important;transition:none!important}}

/* Match Adaptive Header theme switcher exactly. */
html[data-ll-mode="light"] .llhome{--llhome-bg:#fff;--llhome-border:#dce3ed;--llhome-card:#fff;--llhome-text:#1d2939;--llhome-muted:#58677a;--llhome-panel:#f2f5fa;--llhome-gold:#9e6400}

/* v1.1: match Games archive width; tested on homepage. */
body.home main.llhome{width:calc(100% - 40px)!important;max-width:1290px!important;margin-left:auto!important;margin-right:auto!important;box-sizing:border-box!important}
@media(max-width:600px){body.home main.llhome{width:calc(100% - 24px)!important}}
