/* Homepage-only palette: shared pages keep their existing theme. */
body.home-colorful { --nr-page:#fffaf2; --nr-surface:#fffdf8; --nr-ink:#10182b; --nr-muted:#586171; --nr-orange:#ec4d36; --nr-orange-hover:#c73926; --nr-line:#e7e4da; background:#fffaf2!important; color:#10182b!important; }
.home-colorful .nr-nav { background:#fffaf2f5!important; border-bottom:1px solid #eee6da!important; color:#10182b!important; }
.home-colorful .nr-nav-inner { max-width:1480px; width:calc(100% - 64px); }
.home-colorful .nr-links,.home-colorful .nr-brand,.home-colorful .nr-icon-btn,.home-colorful .nr-menu-btn,.home-colorful .nr-mobile-link,.home-colorful .nr-mobile-trigger,.home-colorful .nr-dropdown-item { color:#10182b!important; }
.home-colorful .nr-brand img { box-shadow:none; border:0; }
.home-colorful .nr-login { background:#f2543e!important; color:white!important; border-radius:12px; }
.home-colorful .nr-dropdown-panel,.home-colorful .nr-mobile-panel { background:#fffdf8!important; border-color:#e7e4da!important; box-shadow:0 12px 30px #132a3814; }
.home-colorful .nr-dropdown-desc { color:#586171; }
.home-colorful #hero { position:relative; display:grid; grid-template-columns: .95fr 1.05fr; align-items:center; gap:40px; width:calc(100% - 56px); max-width:1536px; min-height:0; margin:24px auto 0; padding:32px 38px; border-radius:32px; overflow:hidden; background:#d9f6e9!important; background-image:none!important; }
.home-colorful #hero::before,.home-colorful #hero::after { display:none!important; }
.colorful-copy { position:relative; min-width:0; padding:12px 0; }
.home-colorful #hero .hero-eyebrow { color:#1246cc!important; font-size:13px; font-weight:800; letter-spacing:.1em; margin:0 0 22px; }
.home-colorful #hero h1 { position:relative; z-index:1; font-family:'Playfair Display',Georgia,serif; font-size:clamp(36px,4.2vw,68px); line-height:1.12; font-weight:800; letter-spacing:-.045em; margin:0 0 24px; color:#10182b!important; }
#hero h1 span { color:#1246cc; }
.home-colorful #hero .hero-description { max-width:440px; color:#273548!important; font-size:18px; line-height:1.7; margin:0 0 26px; }
.hero-actions { display:flex; flex-wrap:wrap; align-items:center; gap:24px; }
.hero-primary { display:inline-flex; align-items:center; gap:24px; padding:17px 24px; border-radius:12px; background:#f2543e; color:white!important; font-weight:700; transition:background .2s,transform .2s; }
.hero-primary:hover { background:#d7422e; transform:translateY(-2px); }
.hero-secondary { color:#10182b!important; font-weight:700; border-bottom:2px solid #1246cc; padding:10px 0; }
.hero-sun { position:absolute; right:8px; top:0; font-size:100px; line-height:1; color:#ffce3b; opacity:.8; pointer-events:none; }
.hero-book-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; min-width:0; }
.hero-book-card { display:block; min-width:0; padding:10px 10px 14px; border-radius:18px; background:#fffdf8; color:#10182b; transition:transform .2s,box-shadow .2s; }
.hero-book-card:hover { transform:translateY(-5px); box-shadow:0 10px 20px #123f3314; }
.home-cover { position:relative; aspect-ratio:2/3; background:#e8eee7; border-radius:10px; overflow:hidden; }
.home-cover img { display:block; width:100%; height:100%; object-fit:contain; position:relative; z-index:1; }
.cover-fallback { display:none; position:absolute; inset:0; align-items:center; justify-content:center; padding:15px; text-align:center; color:#586171; font-size:13px; }
.cover-unavailable .cover-fallback,.hero-book-grid[aria-busy="true"] .cover-fallback { display:flex; }
.hero-book-grid[aria-busy="true"] img { visibility:hidden; }
.home-book-title { display:block; color:#10182b; font-weight:700; font-size:15px; line-height:1.45; margin:10px 2px 3px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.home-book-author { display:block; color:#586171; font-size:12px; line-height:1.5; margin:0 2px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.home-genres { display:flex; gap:12px; max-width:1460px; margin:24px auto 0; padding:0 30px 6px; overflow-x:auto; }
.home-genres a { flex:0 0 auto; min-width:134px; text-align:center; padding:12px 22px; background:#d4e6ff; color:#10182b; border-radius:30px; font-weight:600; font-size:14px; transition:transform .2s; }
.home-genres a:hover { transform:translateY(-2px); }
.home-genres a:first-child { background:#1246cc; color:white; }
.home-genres a:nth-child(2) { background:#ffc5b5; }
.home-genres a:nth-child(3) { background:#ffe17a; }
.home-genres a:nth-child(4) { background:#b5eed9; }
.home-genres a:nth-child(5) { background:#f3e8d2; }
.home-colorful #novel-trending { padding:30px 0 45px; border:0!important; background:#fffaf2!important; }
#novel-trending > div { max-width:1460px; position:relative; }
#novel-trending h2 { font-family:Inter,sans-serif; font-size:clamp(24px,2.4vw,34px); letter-spacing:-.04em; padding-right:110px; }
.home-see-all { position:absolute; top:8px; right:32px; font-size:14px; font-weight:700; color:#1246cc; }
.home-colorful .trending-track { gap:22px; padding:8px 2px 15px; }
.home-colorful .trending-card { flex:0 0 calc((100% - 110px)/6); width:auto; height:auto; border:0!important; border-radius:10px; background:transparent!important; box-shadow:none!important; }
.home-colorful .trending-card img { aspect-ratio:2/3; width:100%; height:auto; object-fit:contain; background:#e8eee7; border-radius:10px; }
.home-colorful .trending-rank-badge { background:#fffaf2; color:#1246cc; font-weight:700; }
.home-colorful .winners-showcase { background:#e7f0ff!important; color:#10182b!important; border-color:#d5e3f4; }
.home-colorful #angst-winners { background:#fff0d1!important; }
.home-colorful .winners-heading h2,.home-colorful .winner-title { color:#10182b; }
.home-colorful .winners-heading p,.home-colorful .winner-author-label { color:#586171; }
.home-colorful .winner-card { background:#fffdf8; border-color:#e7e4da; box-shadow:0 8px 24px #132a380a; }
.home-colorful .winner-author,.home-colorful .winner-label,.home-colorful .winners-kicker { color:#1246cc; }
.home-colorful .winner-cover { object-fit:contain; background:#e8eee7; }
.home-colorful #about { background:#d9f6e9!important; }
.home-colorful #about .text-primary,.home-colorful #about h2,.home-colorful #about h3 { color:#10182b!important; }
.home-colorful #about .text-secondary,.home-colorful #about .text-gray-300 { color:#586171!important; }
.home-colorful #footer { background:#132c34!important; }
.home-colorful a:focus-visible,.home-colorful button:focus-visible { outline:3px solid #1246cc; outline-offset:4px; }
@media(min-width:901px) and (max-width:1150px) { .home-colorful .nr-links { gap:14px; font-size:12px; } .home-colorful .nr-nav-inner { gap:14px; } .home-colorful #hero { gap:24px; padding:28px; } .hero-book-grid { gap:10px; } .hero-book-card { padding:7px; } }
@media(max-width:900px) { .home-colorful #hero { grid-template-columns:1fr; gap:28px; padding:32px; } .home-colorful #hero h1 { font-size:52px; } .hero-book-grid { max-width:650px; width:100%; } .hero-sun { right:10%; } .home-colorful .trending-card { flex-basis:calc((100% - 66px)/4); } }
@media(max-width:560px) { .home-colorful .nr-nav-inner { width:calc(100% - 32px); } .home-colorful #hero { width:calc(100% - 24px); margin-top:12px; padding:24px 18px; border-radius:22px; gap:28px; } .home-colorful #hero h1 { font-size:38px; } .home-colorful #hero .hero-description { font-size:15px; } .home-colorful #hero .hero-eyebrow { font-size:10px; } .hero-sun { right:0; font-size:64px; top:-5px; } .hero-actions { gap:18px; font-size:13px; } .hero-primary { padding:14px 16px; gap:12px; } .hero-book-grid { gap:8px; } .hero-book-card { padding:6px 6px 10px; border-radius:10px; } .home-book-title { font-size:12px; } .home-book-author { font-size:10px; } .home-genres { margin-top:16px; padding:0 16px 8px; gap:8px; } .home-genres a { min-width:auto; padding:10px 18px; font-size:12px; } .home-colorful .trending-card { flex-basis:calc((100% - 32px)/2.5); } .home-colorful .trending-track { gap:16px; } #novel-trending h2 { padding-right:0; font-size:25px; } .home-see-all { position:static; display:inline-block; margin:0 0 12px; } }
.home-colorful .nr-link,.home-colorful .nr-dropdown-trigger,.home-colorful .nr-dropdown-title { color:#10182b!important; }
.home-colorful .nr-dropdown-desc { color:#586171!important; }
.home-colorful .nr-nav,.home-colorful .nr-brand img { box-shadow:none!important; }
.home-colorful .nr-link:hover,.home-colorful .nr-dropdown-trigger:hover { color:#1246cc!important; }
.home-books-empty { grid-column:1/-1; padding:32px; border:1px dashed #8db9ac; border-radius:14px; color:#586171; }
.home-books-empty a { display:block; color:#1246cc; margin-top:12px; font-weight:600; }
