/* Shared fantasy home layout. Each theme supplies its own colors and artwork. */
html:is([data-theme="fantasy-nuit"],[data-theme="sous-la-lune"]) body[data-view="home"] {
 background-color:var(--fantasy-page,#06132b);
 background-image:linear-gradient(180deg,transparent 120px,#06132b00 225px,var(--fantasy-page,#06132b) 365px),var(--fantasy-hero,url('/theme-fantasy-moon-v1.jpg'));
 background-size:100% 420px,min(100vw,520px) auto;background-repeat:no-repeat;background-position:center top;
 color:#fff0ce;color-scheme:dark;
}
html:is([data-theme="fantasy-nuit"],[data-theme="sous-la-lune"]) body[data-view="home"] .workspace {background:transparent}
html:is([data-theme="fantasy-nuit"],[data-theme="sous-la-lune"]) body[data-view="home"] .mobile-header {height:75px;background:linear-gradient(#020b20a8,transparent);border:0}
html:is([data-theme="fantasy-nuit"],[data-theme="sous-la-lune"]) body[data-view="home"] .mobile-brand {color:#f4d892;text-shadow:0 2px 8px #020817}
html:is([data-theme="fantasy-nuit"],[data-theme="sous-la-lune"]) body[data-view="home"] .mobile-brand>span:last-child {font:600 27px Cormorant,Georgia,serif;letter-spacing:.3px}
html:is([data-theme="fantasy-nuit"],[data-theme="sous-la-lune"]) body[data-view="home"] #brand-icon img {filter:sepia(1) saturate(1.2) brightness(1.5)}
html:is([data-theme="fantasy-nuit"],[data-theme="sous-la-lune"]) body[data-view="home"] #profile-shortcut {border:1px solid #e2c37d;box-shadow:0 0 0 3px #09172d,0 0 12px #b77ae955;background:#122640;color:#efce8b}
html:is([data-theme="fantasy-nuit"],[data-theme="sous-la-lune"]) body[data-view="home"] main {padding-top:0}
html:is([data-theme="fantasy-nuit"],[data-theme="sous-la-lune"]) body[data-view="home"] #home-design {color:#fbe6b4;font:15px/1.4 Georgia,serif}
html:is([data-theme="fantasy-nuit"],[data-theme="sous-la-lune"]) body[data-view="home"] #home-design .hd-welcome {position:relative;min-height:115px;margin:8px 0 22px;gap:13px;align-items:flex-start;padding-top:10px}
html:is([data-theme="fantasy-nuit"],[data-theme="sous-la-lune"]) body[data-view="home"] #home-design .hd-welcome::after {content:'✧';position:absolute;bottom:0;left:52px;right:36px;text-align:center;color:#edce8d;font:24px Georgia;background:linear-gradient(90deg,transparent,#d0a55a 25%,transparent 46%,transparent 54%,#d0a55a 75%,transparent) center/100% 1px no-repeat;pointer-events:none}
html:is([data-theme="fantasy-nuit"],[data-theme="sous-la-lune"]) body[data-view="home"] #home-design h1 {font:500 30px/1.16 Cormorant,Georgia,serif;letter-spacing:.2px;color:#ffdfa0;text-shadow:0 2px 6px #001023,0 0 15px #081a38}
html:is([data-theme="fantasy-nuit"],[data-theme="sous-la-lune"]) body[data-view="home"] #home-design .hd-welcome p {max-width:245px;font:15px/1.4 Georgia,serif;color:#fff2db;text-shadow:0 2px 6px #001023;margin-top:7px}
html:is([data-theme="fantasy-nuit"],[data-theme="sous-la-lune"]) body[data-view="home"] #home-design .hd-add {color:#ffe3a3;border:1px solid #dfbb70;background:var(--fantasy-action,linear-gradient(135deg,#113950,#181a44 65%,#4b2467));box-shadow:inset 0 0 0 2px #061329,0 0 11px #00d4d14d}
html:is([data-theme="fantasy-nuit"],[data-theme="sous-la-lune"]) body[data-view="home"] #home-design h2 {font:600 24px/1.15 Cormorant,Georgia,serif;letter-spacing:0;color:#ffe2a6;text-shadow:0 1px 3px #001027}
html:is([data-theme="fantasy-nuit"],[data-theme="sous-la-lune"]) body[data-view="home"] #home-design .hd-section-title {margin-bottom:10px}
html:is([data-theme="fantasy-nuit"],[data-theme="sous-la-lune"]) body[data-view="home"] #home-design .hd-current>.hd-section-title h2::before,
html:is([data-theme="fantasy-nuit"],[data-theme="sous-la-lune"]) body[data-view="home"] #home-design .hd-statistics h2::before,
html:is([data-theme="fantasy-nuit"],[data-theme="sous-la-lune"]) body[data-view="home"] #home-design .hd-next h2::before {content:'✧';display:inline-block;color:#f4ce82;margin-right:6px;font-size:25px;text-shadow:0 0 9px #b291ef}
html:is([data-theme="fantasy-nuit"],[data-theme="sous-la-lune"]) body[data-view="home"] #home-design .hd-reading {position:relative;overflow:hidden;padding:13px;border:1px solid #f1d18e;border-radius:10px;background:var(--fantasy-reading, #ecd0a4 url('/fantasy-parchment.svg') center/cover);color:#2c1c18;box-shadow:var(--fantasy-frame,inset 0 0 0 3px #ab7449,inset 0 0 0 5px #f8db9f,0 5px 18px #0007);gap:10px 14px;--hd-cover-height:142px}
html:is([data-theme="fantasy-nuit"],[data-theme="sous-la-lune"]) body[data-view="home"] #home-design .hd-reading::before {content:'';position:absolute;inset:7px;border:1px solid #8f623d77;border-radius:5px;pointer-events:none}
html:is([data-theme="fantasy-nuit"],[data-theme="sous-la-lune"]) body[data-view="home"] #home-design .hd-reading::after {content:'✦';position:absolute;top:0;right:14px;width:22px;height:35px;background:var(--fantasy-action,linear-gradient(90deg,#301254,#643477,#271343));border:1px solid #d6b56e;border-top:0;clip-path:polygon(0 0,100% 0,100% 100%,50% 80%,0 100%);color:#ffe1a0;text-align:center;font:15px/24px Georgia;pointer-events:none}
html:is([data-theme="fantasy-nuit"],[data-theme="sous-la-lune"]) body[data-view="home"] #home-design .hd-current-cover {z-index:1;border:1px solid #e4c17d;border-radius:4px;box-shadow:1px 4px 8px #381c1766;}
html:is([data-theme="fantasy-nuit"],[data-theme="sous-la-lune"]) body[data-view="home"] #home-design .hd-reading-info {padding-top:8px;padding-right:6px;padding-bottom:18px}
html:is([data-theme="fantasy-nuit"],[data-theme="sous-la-lune"]) body[data-view="home"] #home-design .hd-reading-info h3 {font:700 24px/1.04 Cormorant,Georgia,serif;letter-spacing:-.2px;color:var(--fantasy-reading-text,#241b24);margin:0 5px 8px 0;text-shadow:var(--fantasy-reading-shadow,0 1px #fff8)}
html:is([data-theme="fantasy-nuit"],[data-theme="sous-la-lune"]) body[data-view="home"] #home-design .hd-reading-info>p {color:var(--fantasy-reading-muted,#392b2c);font:14px/1.3 Georgia,serif}
html:is([data-theme="fantasy-nuit"],[data-theme="sous-la-lune"]) body[data-view="home"] #home-design .hd-progress-text {color:var(--fantasy-reading-muted,#342737);font:11px/1.2 Georgia,serif}
html:is([data-theme="fantasy-nuit"],[data-theme="sous-la-lune"]) body[data-view="home"] #home-design .hd-progress-track {height:10px;border:1px solid #f8ebd3;box-shadow:0 0 0 1px #7350605e,inset 0 1px 3px #0005;background:#8e7f8980}
html:is([data-theme="fantasy-nuit"],[data-theme="sous-la-lune"]) body[data-view="home"] #home-design progress::-webkit-progress-bar {background:#9b879686}
html:is([data-theme="fantasy-nuit"],[data-theme="sous-la-lune"]) body[data-view="home"] #home-design progress::-webkit-progress-value {background:linear-gradient(#6dfaf0,#00b7bd 48%,#066d8e 80%,#064365);box-shadow:0 0 7px #05dfd4}
html:is([data-theme="fantasy-nuit"],[data-theme="sous-la-lune"]) body[data-view="home"] #home-design progress::-moz-progress-bar {background:linear-gradient(#64f7ed,#00a8b7,#064365)}
html:is([data-theme="fantasy-nuit"],[data-theme="sous-la-lune"]) body[data-view="home"] #home-design .hd-resume {position:relative;z-index:1;border-radius:22px;border:1px solid #efd294;outline:1px solid #795581;outline-offset:2px;background:var(--fantasy-action,linear-gradient(115deg,#08465d,#111c40 48%,#4b1e68));color:#fff1dc;font:600 17px/1.1 Cormorant,Georgia,serif;box-shadow:inset 0 0 0 2px #072c43,inset 0 3px 8px #80f9e02b,0 0 9px #39d2d488,3px 2px 8px #9535da66;text-shadow:0 1px 2px #000}
html:is([data-theme="fantasy-nuit"],[data-theme="sous-la-lune"]) body[data-view="home"] #home-design .hd-resume::after {content:'›';position:absolute;right:13px;font:24px/1 Georgia;color:#f7d699}
html:is([data-theme="fantasy-nuit"],[data-theme="sous-la-lune"]) body[data-view="home"] #home-design .hd-collections {gap:9px;padding:0;margin:19px 0 21px;background:none;min-height:90px}
html:is([data-theme="fantasy-nuit"],[data-theme="sous-la-lune"]) body[data-view="home"] #home-design .hd-collections a {position:relative;padding:11px 4px;gap:5px;border:1px solid #d0af72;border-radius:11px;background:var(--fantasy-panel,linear-gradient(130deg,#152d4f,#141736 60%,#3e1a5d));box-shadow:inset 0 0 0 2px #071b34,inset 0 1px 8px #b2acff26,0 3px 10px #0005;color:#ffe7b1}
html:is([data-theme="fantasy-nuit"],[data-theme="sous-la-lune"]) body[data-view="home"] #home-design .hd-collections a::after {content:'';position:absolute;inset:3px;border:1px solid #bca76c40;border-radius:8px;pointer-events:none}
html:is([data-theme="fantasy-nuit"],[data-theme="sous-la-lune"]) body[data-view="home"] #home-design .hd-collections .ui-icon {width:31px;height:31px;stroke:#f1ce83;filter:drop-shadow(0 1px 0 #5b382a) drop-shadow(0 0 4px #f5b44d40)}
html:is([data-theme="fantasy-nuit"],[data-theme="sous-la-lune"]) body[data-view="home"] #home-design .hd-collections strong {font:600 16px/1 Cormorant,Georgia,serif;letter-spacing:0;color:#fff0cd}
html:is([data-theme="fantasy-nuit"],[data-theme="sous-la-lune"]) body[data-view="home"] #home-design .hd-collections span {font:11px/1.2 Georgia,serif;color:#d9c9df}
html:is([data-theme="fantasy-nuit"],[data-theme="sous-la-lune"]) body[data-view="home"] #home-design .hd-statistics h2 {font-size:23px}
html:is([data-theme="fantasy-nuit"],[data-theme="sous-la-lune"]) body[data-view="home"] #home-design .hd-period {border-color:#b99e68;background:var(--fantasy-page,#101d3e);border-radius:15px;box-shadow:inset 0 0 0 2px #041328}
html:is([data-theme="fantasy-nuit"],[data-theme="sous-la-lune"]) body[data-view="home"] #home-design .hd-period button {color:#e2d1e6;font:10px/1.2 Georgia,serif;border-radius:12px}
html:is([data-theme="fantasy-nuit"],[data-theme="sous-la-lune"]) body[data-view="home"] #home-design .hd-period button[aria-pressed=true] {background:var(--fantasy-action,linear-gradient(120deg,#17485c,#40205f));color:#ffe6ae;box-shadow:inset 0 0 0 1px #bd9e5f}
html:is([data-theme="fantasy-nuit"],[data-theme="sous-la-lune"]) body[data-view="home"] #home-design .hd-stat-strip {position:relative;padding:14px 5px;border:1px solid #d8b36f;border-radius:8px;background:var(--fantasy-panel,linear-gradient(110deg,#071b36d9,#141a3ef2,#21123bed));box-shadow:inset 0 0 0 3px #03142a,0 0 14px #00b6d415;min-height:72px}
html:is([data-theme="fantasy-nuit"],[data-theme="sous-la-lune"]) body[data-view="home"] #home-design .hd-stat {gap:7px;color:#f5d28e;border-color:#a88e5766}
html:is([data-theme="fantasy-nuit"],[data-theme="sous-la-lune"]) body[data-view="home"] #home-design .hd-stat>.ui-icon {width:25px;height:25px;color:#e8c474;filter:drop-shadow(0 0 5px #cbb66b44)}
html:is([data-theme="fantasy-nuit"],[data-theme="sous-la-lune"]) body[data-view="home"] #home-design .hd-stat strong {font:600 25px/1 Cormorant,Georgia,serif;color:#ffedc2}
html:is([data-theme="fantasy-nuit"],[data-theme="sous-la-lune"]) body[data-view="home"] #home-design .hd-stat span {font:11px/1.2 Georgia,serif;color:#e6d8ec;margin-top:5px}
html:is([data-theme="fantasy-nuit"],[data-theme="sous-la-lune"]) body[data-view="home"] #home-design .hd-next {margin-top:20px}
html:is([data-theme="fantasy-nuit"],[data-theme="sous-la-lune"]) body[data-view="home"] #home-design .hd-see-all {color:#e7d6ec;font:12px Georgia,serif}
html:is([data-theme="fantasy-nuit"],[data-theme="sous-la-lune"]) body[data-view="home"] #home-design .hd-shelf {gap:16px 13px}
html:is([data-theme="fantasy-nuit"],[data-theme="sous-la-lune"]) body[data-view="home"] #home-design .hd-next-cover {border:1px solid #d8bb7e;border-radius:6px;box-shadow:0 0 0 2px #121d3e,0 3px 12px #0007}
html:is([data-theme="fantasy-nuit"],[data-theme="sous-la-lune"]) body[data-view="home"] #home-design .hd-book-name {color:#f7e2b8;font:600 17px/1.2 Cormorant,Georgia,serif}
html:is([data-theme="fantasy-nuit"],[data-theme="sous-la-lune"]) body[data-view="home"] #home-design .hd-author {color:#c8bada;font:11px/1.4 Georgia,serif}
html:is([data-theme="fantasy-nuit"],[data-theme="sous-la-lune"]) body[data-view="home"] #home-design :is(.hd-empty,.hd-customize) {background:var(--fantasy-panel,#152342);border-color:#b69a62;color:#f5ddb0}
html:is([data-theme="fantasy-nuit"],[data-theme="sous-la-lune"]) body[data-view="home"] #home-design .hd-empty p {color:#cfc4dd}
html:is([data-theme="fantasy-nuit"],[data-theme="sous-la-lune"]) body[data-view="home"] #home-design .hd-carousel-controls button {color:#e3c588}
html:is([data-theme="fantasy-nuit"],[data-theme="sous-la-lune"]) body[data-view="home"] .bottom-nav {background:var(--fantasy-nav,linear-gradient(#0e213c,#050d22));border:1px solid #d4b777;border-bottom:0;border-radius:19px 19px 0 0;box-shadow:0 -3px 16px #091c3b,inset 0 1px 0 #fff0c655;padding-top:8px}
html:is([data-theme="fantasy-nuit"],[data-theme="sous-la-lune"]) body[data-view="home"] .bottom-nav a {color:#ebd6b7;font:12px Georgia,serif;border-radius:13px;background:none}
html:is([data-theme="fantasy-nuit"],[data-theme="sous-la-lune"]) body[data-view="home"] .bottom-nav a>span:last-child {font:12px/1.2 Cormorant,Georgia,serif}
html:is([data-theme="fantasy-nuit"],[data-theme="sous-la-lune"]) body[data-view="home"] .bottom-nav .ui-icon {width:27px;height:27px;color:#edca83;stroke:#edca83;filter:drop-shadow(0 1px 1px #000) drop-shadow(0 0 3px #e9b84d2b)}
html:is([data-theme="fantasy-nuit"],[data-theme="sous-la-lune"]) body[data-view="home"] .bottom-nav a[aria-current=page] {background:radial-gradient(ellipse at bottom,#00b8c733,transparent 75%);color:#ffefd4;box-shadow:inset 0 -2px #23c7ce}
html:is([data-theme="fantasy-nuit"],[data-theme="sous-la-lune"]) body[data-view="home"] .bottom-nav a[aria-current=page] .ui-icon {color:#ffe0a0;fill:#d9b46c;stroke:#f5db9c;filter:drop-shadow(0 0 6px #42efec88)}
@media(max-width:360px){html:is([data-theme="fantasy-nuit"],[data-theme="sous-la-lune"]) body[data-view="home"] #home-design .hd-statistics h2{font-size:20px}html:is([data-theme="fantasy-nuit"],[data-theme="sous-la-lune"]) body[data-view="home"] #home-design .hd-stat{gap:4px}html:is([data-theme="fantasy-nuit"],[data-theme="sous-la-lune"]) body[data-view="home"] #home-design .hd-stat span{font-size:10px}html:is([data-theme="fantasy-nuit"],[data-theme="sous-la-lune"]) body[data-view="home"] #home-design .hd-reading-info h3{font-size:21px}html:is([data-theme="fantasy-nuit"],[data-theme="sous-la-lune"]) body[data-view="home"] #home-design .hd-collections strong{font-size:14px}}
