@charset "utf-8";

:root {
    --nf-canvas: #f7f9f8;
    --nf-surface: #fff;
    --nf-ink: #172e39;
    --nf-brand: #087482;
    --nf-brand-dark: #0f3541;
    --nf-accent: #e8aa72;
    --nf-muted: #61737c;
    --nf-line: #e1e8e7;
    --nf-soft: #eaf2f1;
}

body.novel-home { margin: 0; background: var(--nf-canvas); color: var(--nf-ink); font: 15px/1.55 Inter, "Segoe UI", Arial, sans-serif; }
.novel-home *, .novel-home *::before, .novel-home *::after { box-sizing: border-box; }
.novel-home [hidden] { display: none !important; }
.novel-home a { color: inherit; text-decoration: none; }
.novel-home a:hover { color: var(--nf-brand); }
.novel-home a:focus-visible, .novel-home button:focus-visible, .novel-home input:focus-visible, .novel-home select:focus-visible { outline: 3px solid var(--nf-accent); outline-offset: 3px; }
.novel-home button { font: inherit; }
.novel-home .skip-link { position: fixed; z-index: 10000; top: -60px; left: 12px; padding: 10px 14px; background: var(--nf-brand); color: #fff; }
.novel-home .skip-link:focus { top: 12px; }

/* Compact, light desktop header; keep the existing account and locale controls. */
.novel-home .topBar { display: none !important; }
.novel-home .topMain { min-height: 74px; height: auto; padding: 9px 0; overflow: visible; background: var(--nf-surface); color: var(--nf-ink); border-bottom: 1px solid var(--nf-line); }
.novel-home .topMain > .box_center, .novel-home .mainNav > .box_center, .novel-home .footer > .box_center { width: min(1232px, calc(100% - 48px)); max-width: 1232px; }
.novel-home .topMain > .box_center { display: flex; min-height: 54px; height: auto !important; align-items: center; gap: 21px; flex-wrap: nowrap; }
.novel-home .topMain .logo { display: inline-flex; float: none; flex: 0 0 164px; width: auto; align-items: center; gap: 9px; margin: 0; padding: 0; color: var(--nf-ink); }
.novel-home .topMain .brand-mark { width: 34px; height: 34px; fill: var(--nf-brand-dark); }
.novel-home .topMain .brand-name { color: var(--nf-ink); font: 700 21px/1 Georgia, "Times New Roman", serif; }
.novel-home .topMain .searchBar { display: block; float: none; flex: 1 1 260px; width: auto; min-width: 160px; max-width: 360px; margin: 0; }
.novel-home .search { display: flex; min-height: 40px; width: 100%; overflow: hidden; border: 1px solid #dce5e4; border-radius: 10px; background: #f7f9f9; }
.novel-home .s_int { flex: 1; width: auto; min-width: 0; height: 40px; padding: 0 13px; border: 0; color: var(--nf-ink); background: transparent; }
.novel-home .s_int::placeholder { color: #71828a; opacity: 1; }
.novel-home .search_btn { width: 44px; min-height: 40px; border: 0; background: var(--nf-brand); color: white; cursor: pointer; }
.novel-home .topMain .searchBar .search_btn { background: var(--nf-brand) !important; color: #fff; }
.novel-home .home-inline-nav { display: flex; flex: 0 0 auto; align-items: center; gap: 17px; white-space: nowrap; }
.novel-home .home-inline-nav a { padding: 8px 0; color: #405963; font-size: 13px; }
.novel-home .home-inline-nav a:hover { color: var(--nf-brand); }
.novel-home .topMain .bookShelf { display: flex !important; float: none; flex: 0 0 auto !important; flex-direction: row !important; flex-wrap: nowrap !important; align-items: center; align-self: center; gap: 10px; width: max-content !important; min-width: max-content; height: auto !important; min-height: 40px; margin: 0 0 0 auto !important; padding: 0 !important; overflow: visible; white-space: nowrap; }
.novel-home .topMain .bookShelf .sj_link, .novel-home .topMain .bookShelf .user_link, .novel-home .topMain .bookShelf .user_link a { color: #405963; }
.novel-home .topMain .bookShelf .sj_link, .novel-home .topMain .bookShelf .user_link { float: none; margin: 0; font-size: 13px; }
.novel-home .topMain .bookShelf .user_link { display: inline-flex; align-items: center; padding: 0; line-height: 1.3; }
.novel-home .topMain .bookShelf .user_link .line { margin: 0 7px 0 0; color: #bcc8ca !important; }
.novel-home .topMain .bookShelf .user_link a { margin-right: 7px; }
.novel-home .topMain .bookShelf .locale-switch { display: block; margin: 0; }
.novel-home .topMain .bookShelf .locale-switch select { width: 174px; max-width: 174px; min-height: 36px; padding: 4px 25px 4px 9px; border: 1px solid #dce5e4; border-radius: 8px; color: var(--nf-ink); background: #fff; }
.novel-home .mainNav { display: none !important; }

.novel-home .home-main { width: min(1232px, calc(100% - 48px)); margin: 0 auto; }
.novel-home .home-intro { padding: 24px 0 18px; }
.novel-home .home-intro p { margin: 0 0 4px; color: var(--nf-brand); font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.novel-home .home-intro h1 { margin: 0; color: var(--nf-ink); font: 650 clamp(22px, 2.3vw, 30px)/1.2 Inter, "Segoe UI", Arial, sans-serif; letter-spacing: -.025em; }
.novel-home .home-showcase { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr); gap: 20px; align-items: stretch; padding: 0 0 26px; }
.novel-home .home-showcase--single { grid-template-columns: minmax(0,1fr); }
.novel-home .home-showcase--single .home-lead { min-height: 290px; }
.novel-home .home-lead { display: grid; grid-template-columns: minmax(138px, 190px) minmax(0,1fr); gap: 27px; align-content: center; min-width: 0; min-height: 320px; padding: 30px; border-radius: 18px; overflow: hidden; background: radial-gradient(circle at 91% 12%, rgba(8,116,130,.36), transparent 38%), var(--nf-brand-dark); color: #fff; box-shadow: 0 14px 32px rgba(15,53,65,.12); }
.novel-home .home-cover { position: relative; display: block; width: 100%; aspect-ratio: 2/3; overflow: hidden; border-radius: 7px; background: #e7eeec; }
.novel-home .home-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.novel-home .home-cover--missing { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 15px; padding: 16px; border: 1px solid rgba(255,255,255,.25); background: linear-gradient(145deg, #1e5962, #0c303c); color: #f5fbfa; text-align: center; }
.novel-home .home-cover__fallback-title { display: -webkit-box; max-width: 95%; overflow: hidden; color: inherit; font: 650 16px/1.35 Georgia, "Times New Roman", serif; -webkit-box-orient: vertical; -webkit-line-clamp: 5; }
.novel-home .home-cover__fallback-label { max-width: 95%; padding: 5px 4px; border-top: 1px solid rgba(255,255,255,.5); border-bottom: 1px solid rgba(255,255,255,.5); color: rgba(255,255,255,.78); font-size: 10px; line-height: 1.35; }
.novel-home .home-lead-copy { min-width: 0; align-self: center; }
.novel-home .home-lead .home-kicker { margin: 0 0 10px; color: #9ed2d4; font-size: 11px; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.novel-home .home-lead-title { margin: 0 0 13px; color: #fff; font: 680 clamp(25px, 3vw, 37px)/1.15 Inter, "Segoe UI", Arial, sans-serif; letter-spacing: -.025em; text-wrap: balance; }
.novel-home .home-lead-title a { color: inherit; }
.novel-home .home-lead .home-meta { margin: 0 0 8px; color: #c4d9dc; font-size: 13px; }
.novel-home .home-description { display: -webkit-box; overflow: hidden; max-width: 55ch; margin: 13px 0 17px; color: #e0ebed; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.novel-home .home-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 17px; }
.novel-home .home-button { display: inline-flex; justify-content: center; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 8px; background: #fff; color: var(--nf-brand-dark) !important; font-size: 13px; font-weight: 700; }
.novel-home .home-button:hover { background: #eaf4f3; }
.novel-home .home-button--quiet { border: 1px solid rgba(255,255,255,.33); background: transparent; color: #fff !important; }
.novel-home .home-button--quiet:hover { background: rgba(255,255,255,.09); }
.novel-home .home-latest { min-width: 0; padding: 25px 24px 15px; border: 1px solid var(--nf-line); border-radius: 18px; background: var(--nf-surface); box-shadow: 0 8px 24px rgba(23,46,57,.035); }
.novel-home .home-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px; padding-bottom: 13px; border-bottom: 1px solid var(--nf-line); }
.novel-home .home-section-heading h2 { margin: 0; color: var(--nf-ink); font: 680 22px/1.2 Inter, "Segoe UI", Arial, sans-serif; }
.novel-home .home-section-heading--compact h2 { font-size: 21px; }
.novel-home .home-section-heading .home-kicker { margin: 0 0 5px; color: var(--nf-brand); font-size: 10px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.novel-home .home-text-link { flex: 0 0 auto; color: var(--nf-brand); font-size: 12px; font-weight: 700; }
.novel-home .home-update-list { margin: 0; padding: 0; list-style: none; }
.novel-home .home-update-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px 12px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid #edf0ef; }
.novel-home .home-update-row:last-child { border-bottom: 0; }
.novel-home .home-update-title { overflow: hidden; color: var(--nf-ink); font: 650 14px/1.35 Inter, "Segoe UI", Arial, sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.novel-home .home-update-book { grid-column: 1; overflow: hidden; color: var(--nf-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.novel-home .home-update-date { grid-column: 2; grid-row: 1 / span 2; color: var(--nf-muted); font-size: 11px; white-space: nowrap; }
.novel-home .home-shelf, .novel-home .home-genres { padding: 25px 0 31px; }
.novel-home .home-book-grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 22px 18px; padding-top: 18px; }
.novel-home .home-book-card { min-width: 0; }
.novel-home .home-book-card__link { display: block; }
.novel-home .home-book-card .home-cover { margin-bottom: 9px; border: 1px solid #dce5e4; }
.novel-home .home-book-card .home-cover--missing { background: linear-gradient(145deg, #e5efed, #d4e5e3); color: var(--nf-brand-dark); }
.novel-home .home-book-card .home-cover__fallback-label { border-color: rgba(15,53,65,.32); color: #52676e; }
.novel-home .home-book-card__title { display: -webkit-box; overflow: hidden; margin: 0 0 5px; color: var(--nf-ink); font: 650 15px/1.35 Inter, "Segoe UI", Arial, sans-serif; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.novel-home .home-book-card__meta { display: flex; flex-wrap: wrap; gap: 5px 9px; color: var(--nf-muted); font-size: 11px; }
.novel-home .home-book-card__chapter { display: block; overflow: hidden; margin-top: 7px; color: var(--nf-brand); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.novel-home .home-genre-list { display: flex; flex-wrap: wrap; gap: 9px; padding-top: 15px; }
.novel-home .home-genre-link { padding: 8px 13px; border: 1px solid #d6e3e2; border-radius: 9px; color: var(--nf-brand-dark); background: #fff; font-size: 13px; }
.novel-home .home-genre-link:hover { border-color: var(--nf-brand); background: #f1f8f7; }
.novel-home .home-status { margin: 4px 0 28px; padding: 14px 16px; color: #8a5550; background: #fff4f1; border-radius: 12px; }
.novel-home .home-status--empty { display: flex; min-height: 270px; flex-direction: column; align-items: center; justify-content: center; margin: 4px 0 30px; padding: 36px 24px; border: 1px solid var(--nf-line); background: linear-gradient(135deg, #fff 10%, #eff6f5); color: var(--nf-ink); text-align: center; }
.novel-home .home-empty-mark { display: grid; width: 58px; height: 58px; place-items: center; margin-bottom: 13px; border-radius: 17px; background: var(--nf-brand-dark); color: #fff; font: 700 16px Georgia,serif; letter-spacing: .05em; }
.novel-home .home-status--empty .home-kicker { margin: 0 0 5px; color: var(--nf-brand); font-size: 10px; font-weight: 750; letter-spacing: .12em; }
.novel-home .home-status--empty h2 { margin: 0; font-size: clamp(21px, 2vw, 28px); line-height: 1.3; }
.novel-home .home-status--empty #home-empty-message { max-width: 54ch; margin: 10px 0 0; color: var(--nf-muted); }
.novel-home .home-empty-languages { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.novel-home .home-empty-languages a { min-height: 38px; display: inline-flex; align-items: center; padding: 0 13px; border: 1px solid #c8d9d8; border-radius: 999px; background: #fff; color: var(--nf-brand-dark); font-size: 13px; font-weight: 650; }
.novel-home .home-footer { margin-top: 12px; padding: 20px 24px; border-top: 1px solid var(--nf-line); color: var(--nf-muted); text-align: center; font-size: 12px; }
.novel-home .home-footer p { margin: 8px 0 0; }
.novel-home .footer { margin-top: 12px; padding: 18px 0; border-top: 1px solid var(--nf-line); background: transparent; color: var(--nf-muted); }

.home-mobile-header, .home-mobile-menu, .home-mobile-search, .home-mobile-language { display: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 1120px) {
    .novel-home .topMain > .box_center { gap: 14px; }
    .novel-home .topMain .logo { flex-basis: 145px; }
    .novel-home .home-inline-nav { gap: 10px; }
    .novel-home .home-inline-nav a { font-size: 12px; }
    .novel-home .topMain .bookShelf { gap: 7px; }
    .novel-home .topMain .bookShelf .locale-switch select { width: 150px; max-width: 150px; }
    .novel-home .home-book-grid { grid-template-columns: repeat(5,minmax(0,1fr)); }
}
@media (max-width: 900px) {
    .novel-home .header, .novel-home .topMain, .novel-home .mainNav, .novel-home .footer { width: 100%; min-width: 0; }
    .novel-home .topMain > .box_center { flex-wrap: wrap; }
    .novel-home .home-inline-nav { display: none; }
    .novel-home .home-showcase { grid-template-columns: minmax(0,1fr); }
    .novel-home .home-lead { min-height: 285px; }
    .novel-home .home-book-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
@media (min-width: 681px) and (max-width: 900px) {
    .novel-home .topMain { min-height: 106px; }
    .novel-home .topMain > .box_center { display: grid; grid-template-columns: minmax(130px,1fr) auto; grid-template-rows: 42px 42px; gap: 7px 12px; height: auto !important; padding: 5px 0; }
    .novel-home .topMain .logo { grid-column: 1; grid-row: 1; flex: none; }
    .novel-home .topMain .bookShelf { grid-column: 2; grid-row: 1; justify-self: end; }
    .novel-home .topMain .bookShelf .locale-switch select { width: 170px; max-width: 170px; }
    .novel-home .topMain .searchBar { grid-column: 1 / -1; grid-row: 2; width: 100%; max-width: none; min-width: 0; }
}
@media (max-width: 680px) {
    .novel-home.mobile-novel-home { padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
    .novel-home.mobile-novel-home .home-mobile-header { display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 16px; border-bottom: 1px solid var(--nf-line); background: #fff; color: var(--nf-ink); }
    .novel-home.mobile-novel-home .home-mobile-brand { display: inline-flex; min-width: 0; align-items: center; gap: 8px; color: var(--nf-ink); }
    .novel-home.mobile-novel-home .home-mobile-brand svg { width: 30px; height: 30px; flex: none; fill: var(--nf-brand-dark); }
    .novel-home.mobile-novel-home .home-mobile-brand span { font: 700 19px/1 Georgia, "Times New Roman", serif; }
    .novel-home.mobile-novel-home .home-mobile-actions { display: flex; gap: 4px; }
    .novel-home.mobile-novel-home .home-icon-button { display: grid; width: 42px; height: 42px; place-items: center; border: 0; border-radius: 9px; color: var(--nf-brand-dark); background: transparent; cursor: pointer; }
    .novel-home.mobile-novel-home .home-icon-button svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
    .novel-home.mobile-novel-home .home-mobile-search[hidden], .novel-home.mobile-novel-home .home-mobile-menu[hidden] { display: none !important; }
    .novel-home.mobile-novel-home .home-mobile-search { display: flex; gap: 8px; padding: 11px 16px; border-bottom: 1px solid var(--nf-line); background: #fff; }
    .novel-home.mobile-novel-home .home-mobile-search input { flex: 1; min-width: 0; min-height: 42px; padding: 0 11px; border: 1px solid #d1dedd; border-radius: 8px; background: #fff; }
    .novel-home.mobile-novel-home .home-mobile-search button { min-height: 42px; padding: 0 14px; border: 0; border-radius: 8px; background: var(--nf-brand); color: #fff; }
    .novel-home.mobile-novel-home .home-mobile-menu { display: grid; gap: 0; padding: 5px 16px 8px; border-bottom: 1px solid var(--nf-line); background: #fff; }
    .novel-home.mobile-novel-home .home-mobile-menu > a, .novel-home.mobile-novel-home .home-mobile-menu .user_link { padding: 12px 2px; border-bottom: 1px solid #edf0ef; color: var(--nf-ink); }
    .novel-home.mobile-novel-home .home-mobile-menu .user_link a { margin-right: 14px; }
    .novel-home.mobile-novel-home .home-mobile-language { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 46px; padding: 5px 16px; border-bottom: 1px solid var(--nf-line); background: #f7f9f8; color: var(--nf-muted); font-size: 12px; }
    .novel-home.mobile-novel-home .home-mobile-language select { max-width: 190px; min-height: 34px; padding: 3px 25px 3px 9px; border: 1px solid #d1dedd; border-radius: 8px; color: var(--nf-ink); background: #fff; }
    .novel-home .home-main { width: auto; margin: 0 16px; }
    .novel-home .home-intro { padding: 19px 0 13px; }
    .novel-home .home-intro p { margin-bottom: 3px; font-size: 11px; }
    .novel-home .home-intro h1 { font-size: 22px; }
    .novel-home .home-showcase { display: block; padding: 0 0 20px; }
    .novel-home .home-lead, .novel-home .home-showcase--single .home-lead { grid-template-columns: minmax(102px, 32%) minmax(0,1fr); gap: 15px; min-height: 0; padding: 19px; border-radius: 15px; }
    .novel-home .home-lead-title { margin-bottom: 8px; font-size: clamp(20px,5.8vw,27px); }
    .novel-home .home-lead .home-meta { margin-bottom: 5px; font-size: 11px; }
    .novel-home .home-lead .home-kicker { margin-bottom: 7px; font-size: 9px; }
    .novel-home .home-description { display: -webkit-box; margin: 8px 0 11px; font-size: 12px; -webkit-line-clamp: 2; }
    .novel-home .home-actions { gap: 7px; margin-top: 11px; }
    .novel-home .home-button { min-height: 39px; padding: 0 10px; border-radius: 7px; font-size: 11px; }
    .novel-home .home-latest { margin-top: 14px; padding: 18px 16px 10px; border-radius: 14px; }
    .novel-home .home-section-heading { align-items: center; }
    .novel-home .home-section-heading h2, .novel-home .home-section-heading--compact h2 { font-size: 19px; }
    .novel-home .home-update-row { padding: 11px 0; gap: 4px 8px; }
    .novel-home .home-update-title { font-size: 13px; }
    .novel-home .home-update-date { font-size: 10px; }
    .novel-home .home-shelf, .novel-home .home-genres { padding: 20px 0 23px; }
    .novel-home .home-book-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px 13px; padding-top: 14px; }
    .novel-home .home-book-card__title { font-size: 14px; }
    .novel-home .home-book-card__meta, .novel-home .home-book-card__chapter { font-size: 10px; }
    .novel-home .home-status--empty { min-height: 290px; margin: 5px 0 20px; padding: 28px 18px; border-radius: 15px; }
    .novel-home .home-empty-languages { gap: 7px; }
    .novel-home .home-empty-languages a { min-height: 36px; padding: 0 11px; font-size: 12px; }
    .novel-home .home-footer { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .novel-home *, .novel-home *::before, .novel-home *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; } }

/* V5 Home: atmospheric discovery first, real books and useful reader paths next. */
.novel-home .home-main { width: min(1236px, calc(100% - 48px)); }
.novel-home .home-hero {
    position: relative;
    display: flex;
    min-height: 382px;
    align-items: center;
    isolation: isolate;
    overflow: hidden;
    margin: 0 calc((min(1236px, 100vw - 48px) - 100vw) / 2);
    padding: 48px max(24px, calc((100vw - 1236px) / 2));
    border-bottom: 1px solid #31515d;
    background: linear-gradient(90deg, #08141d 0%, #0a1922f5 35%, #0a19227a 67%, #0a192252 100%),
                linear-gradient(0deg, #08141d 0%, transparent 44%),
                url('/images/story-atmosphere.webp') right 46% / cover no-repeat, #0a141d;
    color: #f4f2ed;
}
.novel-home .home-hero::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: "";
    background: radial-gradient(ellipse at 83% 18%, rgb(230 187 125 / 12%), transparent 25%),
                linear-gradient(90deg, #08141d 0%, transparent 58%);
    pointer-events: none;
}
.novel-home .home-hero__copy { width: min(570px, 52%); }
.novel-home .home-hero .home-kicker { margin: 0 0 14px; color: #e6bb7d; font-size: 11px; font-weight: 750; letter-spacing: .18em; }
.novel-home .home-hero h1 { max-width: 590px; margin: 0; color: #f5f1e8; font: 500 clamp(42px, 4.2vw, 58px)/1.05 Georgia, Charter, "Times New Roman", serif; letter-spacing: -.035em; text-wrap: balance; }
.novel-home .home-hero__intro { max-width: 49ch; margin: 16px 0 0; color: #c4d2d7; font-size: 15px; line-height: 1.7; }
.novel-home .home-hero .home-actions { margin-top: 24px; }
.novel-home .home-hero .home-button { min-height: 46px; padding: 0 20px; border: 1px solid #e6bb7d; border-radius: 8px; background: #e6bb7d; color: #14232b !important; }
.novel-home .home-hero .home-button--quiet { border-color: #78939b; background: #0c1d27b8; color: #f4f2ed !important; }
.novel-home .home-hero__art { position: absolute; z-index: -1; top: 0; right: 0; width: 57%; height: 100%; background: linear-gradient(90deg, #0a1922 0%, transparent 34%), linear-gradient(0deg, #08141d99, transparent 40%); pointer-events: none; }
.novel-home .home-intro { display: none; }
body.novel-home .home-shelf { padding: 28px 0 34px; background: transparent; border-color: transparent; box-shadow: none; }
.novel-home .home-shelf .home-section-heading { margin-bottom: 18px; }
.novel-home .home-section-heading h2 { color: #f4f2ed; font: 500 clamp(25px, 2.5vw, 31px)/1.2 Georgia, Charter, "Times New Roman", serif; }
.novel-home .home-section-heading .home-kicker { color: #e6bb7d; }
.novel-home .home-book-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 26px 20px; padding-top: 0; }
.novel-home .home-book-card { min-width: 0; padding: 0 0 12px; border-bottom: 1px solid #31515d; }
.novel-home .home-book-card__link { color: #f4f2ed; }
.novel-home .home-book-card .home-cover { margin: 0 0 11px; border: 1px solid #49636b; border-radius: 7px; box-shadow: 0 12px 24px rgb(0 0 0 / 26%); }
.novel-home .home-book-card .home-cover--missing,
.novel-home .home-continue-card .home-cover--missing { display: grid; place-items: center; border-color: #7c694b; background: radial-gradient(circle at 50% 36%, #1d514e, #102c36 66%, #0c202a); color: #e6bb7d; }
.novel-home .home-cover__fallback-mark { display: grid; width: 42px; height: 56px; place-items: center; border: 1px solid #b9955e; border-radius: 3px; color: #e6bb7d; font: 24px/1 Georgia, serif; box-shadow: 8px 6px 0 -4px #294a4c; }
.novel-home .home-book-card__title { margin: 0 0 7px; color: #f4f2ed; font: 650 16px/1.35 Georgia, Charter, "Times New Roman", serif; }
.novel-home .home-book-card__meta { color: #b9c8ce; font-size: 12px; }
.novel-home .home-book-card__chapter { margin-top: 8px; color: #e6bb7d; font-size: 12px; }
.novel-home .home-continue { margin: 0 0 28px; }
.novel-home .home-continue-card { margin-top: 16px; }
.novel-home .home-continue-card__inner { display: grid; grid-template-columns: 92px minmax(0,1fr); gap: 18px; max-width: 670px; padding: 15px; border: 1px solid #31515d; border-radius: 13px; background: #122531; }
.novel-home .home-cover--continue { width: 92px; }
.novel-home .home-continue-card__copy { align-self: center; }
.novel-home .home-continue-card__copy .home-kicker { margin: 0 0 5px; color: #e6bb7d; font-size: 10px; letter-spacing: .1em; }
.novel-home .home-continue-card__title { margin: 0; color: #f4f2ed; font: 650 18px/1.35 Georgia, Charter, "Times New Roman", serif; }
.novel-home .home-continue-card__chapter { margin: 7px 0 13px; color: #b9c8ce; font-size: 13px; }
.novel-home .home-continue-card .home-button { min-height: 38px; background: #e6bb7d; color: #14232b !important; }
.novel-home .home-showcase { display: block; padding: 0 0 24px; }
.novel-home .home-latest { padding: 21px 23px 11px; border-color: #31515d; background: #122531; color: #f4f2ed; }
.novel-home .home-update-row { border-color: #294753; }
.novel-home .home-update-title { color: #f4f2ed; }
.novel-home .home-update-book, .novel-home .home-update-date { color: #b9c8ce; }
.novel-home .home-rankings { margin: 0 0 28px; padding: 20px; border: 1px solid #31515d; border-radius: 14px; background: #122531; }
.novel-home .home-ranking-list { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; padding-top: 15px; }
.novel-home .home-ranking-item { min-width: 0; border: 1px solid #31515d; border-radius: 10px; background: #172e3c; }
.novel-home .home-ranking-title { color: #f4f2ed; }
.novel-home .home-ranking-position { color: #e6bb7d; }
body.novel-home .home-genres { padding-top: 10px; background: transparent; border-color: transparent; box-shadow: none; }
.novel-home .home-genre-link { min-height: 42px; display: inline-flex; align-items: center; padding: 0 15px; border-color: #31515d; border-radius: 99px; background: #122531; color: #e6bb7d; }
.novel-home .home-genre-link:hover { border-color: #e6bb7d; background: #172e3c; }
.novel-home .home-status--empty { border-color: #31515d; background: linear-gradient(125deg, #122531, #0c202b); color: #f4f2ed; }
.novel-home .home-status--empty #home-empty-message { color: #b9c8ce; }
.novel-home .home-status--empty .home-kicker { color: #e6bb7d; }
.novel-home .home-empty-languages a { border-color: #56717a; background: #122531; color: #f4f2ed; }
.novel-home .footer { border-color: #31515d; color: #b9c8ce; }
.novel-home .nf-site-header .topMain { min-height: 72px; padding: 0; background: #0a141d; color: #f4f2ed; }
.novel-home .nf-site-header .topMain > .box_center { display: grid; grid-template-columns: auto auto minmax(190px,1fr) auto; grid-template-areas: "brand nav search menu"; flex-wrap: nowrap; width: min(1236px,calc(100% - 40px)); min-height: 72px; gap: clamp(12px,1.7vw,26px); padding: 0; }
.novel-home .nf-site-header .topMain .logo { flex: initial; color: #e6bb7d; }
.novel-home .nf-site-header .topMain .brand-mark { fill: none; color: #e6bb7d; }
.novel-home .nf-site-header .topMain .brand-name { color: #f4f2ed; }
.novel-home .nf-site-header .topMain .searchBar { display: block; flex: initial; width: auto; max-width: none; min-width: 0; margin: 0; }
.novel-home .nf-site-header .topMain .searchBar .search { min-height: 42px; border-color: #31515d; border-radius: 11px; background: #122531; }
.novel-home .nf-site-header .topMain .searchBar .s_int { height: 40px; color: #f4f2ed; background: transparent; }
.novel-home .nf-site-header .topMain .searchBar .search_btn { width: 44px; min-height: 40px; background: #164754 !important; color: #f4f2ed; }
.novel-home .nf-site-header .nf-primary-nav { display: flex; flex: initial; }
.novel-home .nf-site-header .nf-account-links { display: flex; width: auto; min-width: 0; margin: 0; }
.novel-home .nf-site-header .nf-account-links .sj_link { color: #f4f2ed; }
.novel-home .nf-site-header .nf-current-language { color: #b9c8ce; }
@media (max-width: 1099px) {
    .novel-home .home-hero { min-height: 296px; background-position: 66% center; }
    .novel-home .home-hero__copy { width: min(520px, 63%); }
    .novel-home .home-hero h1 { font-size: clamp(37px, 5vw, 50px); }
    .novel-home .home-book-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
    .novel-home .home-ranking-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (min-width: 768px) and (max-width: 1099px) {
    .novel-home .nf-site-header .topMain { height: 72px !important; min-height: 72px !important; padding: 0 !important; }
    .novel-home .nf-site-header .topMain > .box_center {
        grid-template-columns: auto minmax(180px, 1fr) 44px !important;
        grid-template-areas: "brand search toggle" !important;
        width: calc(100% - 32px);
        height: 72px !important;
        min-height: 72px;
        gap: 14px;
    }
    .novel-home .nf-site-header .topMain .logo { grid-area: brand !important; }
    .novel-home .nf-site-header .topMain .searchBar {
        grid-area: search !important;
        grid-column: auto !important;
        grid-row: auto !important;
        width: auto;
    }
    .novel-home .nf-site-header .mobile-menu-toggle { grid-area: toggle !important; }
    .novel-home .home-book-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 680px) {
    .novel-home .nf-site-header .topMain { min-height: 60px; padding: 0; }
    .novel-home .nf-site-header .topMain > .box_center { display: grid; grid-template-columns: minmax(0,1fr) 44px 44px !important; grid-template-areas: "brand searchToggle menuToggle" !important; grid-template-rows: auto; gap: 8px; width: calc(100% - 24px); min-height: 60px; padding: 0; }
    .novel-home .nf-site-header .topMain .logo { grid-area: brand; min-height: 48px; }
    .novel-home .nf-site-header .topMain .searchBar { display: none !important; }
    .novel-home .nf-site-header .nf-menu-content { top: 100%; right: 12px; left: 12px; width: auto; border-color: #31515d; background: #122531; }
    .novel-home .nf-site-header.nf-mobile-search-open .topMain .searchBar { display: block !important; }
    .novel-home .nf-site-header .nf-account-links { display: flex; flex-direction: column; align-items: stretch; }
    .novel-home .home-main { width: auto; margin: 0 16px; }
    .novel-home .home-hero { min-height: 288px; margin: 0 -16px; padding: 29px 20px; align-items: end; background-position: 63% center; }
    .novel-home .home-hero::after { background: linear-gradient(90deg,#08141df2 0%,#08141dce 55%,#08141d66 100%),linear-gradient(0deg,#08141dba,transparent 65%); }
    .novel-home .home-hero__copy { width: min(100%, 470px); }
    .novel-home .home-hero .home-kicker { margin-bottom: 9px; font-size: 9px; }
    .novel-home .home-hero h1 { max-width: 420px; font-size: clamp(33px, 9vw, 42px); }
    .novel-home .home-hero__intro { max-width: 39ch; margin-top: 10px; font-size: 13px; line-height: 1.55; }
    .novel-home .home-hero .home-actions { gap: 8px; margin-top: 17px; }
    .novel-home .home-hero .home-button { min-height: 44px; padding: 0 13px; font-size: 12px; }
    .novel-home .home-shelf { padding: 22px 0 25px; }
    .novel-home .home-section-heading { align-items: end; }
    .novel-home .home-section-heading h2 { font-size: 24px; }
    .novel-home .home-book-grid { display: grid; grid-auto-columns: minmax(150px, 64%); grid-auto-flow: column; grid-template-columns: none; gap: 13px; overflow-x: auto; padding: 0 4px 11px 0; scroll-snap-type: x mandatory; scrollbar-width: thin; }
    .novel-home .home-book-card { scroll-snap-align: start; }
    .novel-home .home-book-card__title { font-size: 15px; }
    .novel-home .home-continue { margin-bottom: 22px; }
    .novel-home .home-continue-card__inner { grid-template-columns: 72px minmax(0,1fr); gap: 13px; }
    .novel-home .home-cover--continue { width: 72px; }
    .novel-home .home-showcase { padding-bottom: 20px; }
    .novel-home .home-latest { margin-top: 0; padding: 18px 15px 10px; }
    .novel-home .home-rankings { margin-bottom: 19px; padding: 15px; }
    .novel-home .home-ranking-list { grid-template-columns: 1fr; }
    .novel-home .home-genres { padding: 16px 0 22px; }
}
@media (max-width: 359px) {
    .novel-home .home-hero { min-height: 278px; padding-right: 16px; padding-left: 16px; }
    .novel-home .home-hero h1 { font-size: 31px; }
    .novel-home .home-hero__intro { font-size: 12px; }
    .novel-home .home-hero .home-button { padding: 0 10px; font-size: 11px; }
    .novel-home .home-book-grid { grid-auto-columns: 74%; }
}

/* SSR and hydrated shelves use identical cover/title slots. */
.novel-home .home-book-card__title{min-height:2.7em}.novel-home .home-book-card__meta{min-height:34px}.novel-home .home-book-card .home-cover{aspect-ratio:2/3;box-sizing:border-box}.novel-home .home-book-card .home-cover img{width:100%;height:100%;object-fit:cover}

@media(hover:hover) and (prefers-reduced-motion:no-preference){.novel-home .home-book-card .home-cover{transition:transform .18s ease;transform-origin:center bottom}.novel-home .home-book-card__link:hover .home-cover{transform:perspective(900px) rotateY(-4deg) translateY(-3px)}}
