/* Keizoku "Visual Novel" special theme.
   PC / tablet (768px+): a VN stage — painted room that follows the time of day, Shiori's sprite, the app in a glass
   panel, a permanent text box with face window and quick menu, centred choices, a title screen and a backlog.
   Phone: the app in the same night-reading style, with Shiori in a pop-up box.
   Behaviour: vn.js. Art: vn/. Everything is scoped to data-skin="novel" (or to elements vn.js only creates in it). */

:root[data-skin="novel"]{
  --bg1:#100c18;--bg2:#100c18;--bg3:#100c18;
  --glass:rgba(16,12,26,.78);--glass2:rgba(255,244,222,.05);--edge:rgba(214,186,120,.26);--shadow:rgba(0,0,0,.5);
  --ink:#eee7da;--sub:#a99f90;--phy:#d6ba78;--chem:#9fb6d6;--math:#c99ab8;--hot:#d25a5f;
  --acc:#d6ba78;--on-acc:#17111f;--inv:#17111f;
  --page:#100c18;
  --card-bg:rgba(16,12,26,.74);--card-bd:1px solid rgba(214,186,120,.22);--card-r:3px;--chip-r:3px;
  --tile-bg:rgba(255,244,222,.04);--tile-bd:1px solid rgba(214,186,120,.16);
  --vn-serif:"EB Garamond",Georgia,"Yu Mincho",YuMincho,"Hiragino Mincho ProN","Noto Serif CJK JP","Noto Serif JP","Times New Roman",serif;
  --vn-display:"Playfair Display","EB Garamond",Georgia,"Yu Mincho",YuMincho,"Hiragino Mincho ProN","Noto Serif CJK JP","Noto Serif JP",serif;
  --t-font:var(--vn-serif);--t-num:var(--vn-display);--t-title:var(--vn-display);
  --vn-gold:#d6ba78;--vn-dockh:200px;
  color-scheme:dark;
}
/* time of day: wall, window sky, sun/moon, light through the window, lamp */
:root[data-vnt="night"]{--vw1:#1d1626;--vw2:#0e0a12;--vs1:#070b22;--vs2:#18204a;--vs3:#2c2a52;--vorb:#f4efdc;--vstar:.9;--vray:rgba(150,170,235,.10);--vlamp:1;--vn-glow:rgba(190,200,240,.10)}
:root[data-vnt="dusk"]{--vw1:#3b2229;--vw2:#160d12;--vs1:#2c1f4e;--vs2:#c4566a;--vs3:#f2a26e;--vorb:#ffd28c;--vstar:.15;--vray:rgba(255,160,110,.20);--vlamp:.7;--vn-glow:rgba(214,96,80,.22)}
:root[data-vnt="day"]{--vw1:#4a3a37;--vw2:#231a19;--vs1:#7fb0de;--vs2:#c4dcef;--vs3:#f1ede2;--vorb:#fff7da;--vstar:0;--vray:rgba(255,243,200,.24);--vlamp:0;--vn-glow:rgba(236,220,170,.14)}
:root[data-vnt="dawn"]{--vw1:#3a2a35;--vw2:#18121a;--vs1:#7d84c0;--vs2:#e8a7b1;--vs3:#f7d2a8;--vorb:#fff0d2;--vstar:.25;--vray:rgba(255,200,170,.18);--vlamp:.3;--vn-glow:rgba(240,176,150,.2)}
.vs-w1{stop-color:var(--vw1,#1d1626)}.vs-w2{stop-color:var(--vw2,#0e0a12)}
.vs-s1{stop-color:var(--vs1,#070b22)}.vs-s2{stop-color:var(--vs2,#18204a)}.vs-s3{stop-color:var(--vs3,#2c2a52)}
.vs-r1{stop-color:var(--vray,rgba(150,170,235,.1))}
.vn-orb{fill:var(--vorb,#f4efdc);filter:drop-shadow(0 0 18px var(--vorb,#f4efdc))}
.vn-stars{fill:#fff;opacity:var(--vstar,.9)}
.vn-lampglow{opacity:var(--vlamp,1)}

/* ---------- page: night-reading look (phone and stage) ---------- */
html:root:root[data-skin="novel"] body{
  font-family:var(--vn-serif)!important;letter-spacing:.01em;color:var(--ink);
  background:radial-gradient(1200px 520px at 78% -6%,var(--vn-glow,rgba(214,186,120,.10)),transparent 60%),
    linear-gradient(180deg,var(--vw1,#151026) 0%,#0f0b18 55%,#0b0812 100%) fixed!important}
html:root:root[data-skin="novel"] body *{font-family:inherit}
html:root:root[data-skin="novel"] body ::selection{background:rgba(214,186,120,.35);color:#fff}
html:root:root[data-skin="novel"] body :is(p,li,small,.empty,.pnote){font-weight:400}
html:root:root[data-skin="novel"] body h1{background:transparent!important;border:0!important;box-shadow:none!important}
html:root:root[data-skin="novel"] body h1 span{font-family:var(--vn-serif)!important;font-weight:400!important;font-style:italic;letter-spacing:.1em!important;color:var(--ink)!important;-webkit-text-fill-color:var(--ink)!important;text-transform:none!important}
html:root:root[data-skin="novel"] body h1 span::after{content:"";display:block;height:1px;margin:6px auto 0;width:70%;background:linear-gradient(90deg,transparent,var(--vn-gold),transparent)}
html:root:root[data-skin="novel"] body :is(.card,.tpanel){background:var(--card-bg)!important;border:1px solid rgba(214,186,120,.2)!important;border-radius:3px!important;box-shadow:0 18px 40px -24px rgba(0,0,0,.8),inset 0 0 0 5px rgba(214,186,120,.05)!important}
html:root:root[data-skin="novel"] body :is(.lbl,.setsec){font-variant:small-caps;letter-spacing:.14em;color:var(--vn-gold)!important;text-transform:lowercase}
html:root:root[data-skin="novel"] body :is(.hero-title,.tdisp,.unit b){font-family:var(--vn-serif)!important;font-weight:400!important}
html:root:root[data-skin="novel"] body .unit{background:transparent!important;border:0!important;border-bottom:1px solid rgba(214,186,120,.25)!important;box-shadow:none!important}
html:root:root[data-skin="novel"] body .unit:first-child b{color:var(--vn-gold)!important}
html:root:root[data-skin="novel"] body :is(.tab.on,.task.on,.tasks .task.on,.seg button.on,.cfseg button.on,.cfft.on,.rvpre button.on,.difb.on){background:transparent!important;color:var(--vn-gold)!important;border-color:rgba(214,186,120,.55)!important;box-shadow:inset 0 -2px 0 var(--vn-gold)!important}
html:root:root[data-skin="novel"] body :is(.tbtn.main,.btn){background:transparent!important;color:var(--vn-gold)!important;border:1px solid var(--vn-gold)!important;letter-spacing:.06em}
html:root:root[data-skin="novel"] body :is(.tbtn.main,.btn):hover{background:rgba(214,186,120,.12)!important}
html:root:root[data-skin="novel"] body .bar{height:3px!important;background:rgba(214,186,120,.14)!important;border-radius:0!important}
html:root:root[data-skin="novel"] body :is(.bar>i,.chpb i){background:linear-gradient(90deg,rgba(214,186,120,.5),var(--vn-gold))!important;border-radius:0!important}
html:root:root[data-skin="novel"] body .ring circle:nth-of-type(2){stroke:var(--vn-gold)!important;stroke-linecap:butt}
html:root:root[data-skin="novel"] body .nav button.on{color:var(--vn-gold)!important}
.mat-novel{border-radius:3px;background:linear-gradient(180deg,#3a1726,#100c18);box-shadow:inset 0 0 0 1px rgba(214,186,120,.5);position:relative}
.mat-novel::after{content:"";position:absolute;left:3px;right:3px;bottom:3px;height:6px;background:rgba(16,12,26,.85);box-shadow:inset 0 0 0 1px rgba(214,186,120,.6)}

/* ---------- shared dialogue bits ---------- */
.vntx em,.vnlines em{font-style:normal;color:#d6ba78}
.vntx strong,.vnlines strong{font-weight:inherit;color:#e0787c}
.vnname{padding:4px 18px 5px;background:linear-gradient(180deg,#221a2e,#15101e);border:1px solid rgba(214,186,120,.65);
  font:italic 400 1.05rem/1.2 "EB Garamond",Georgia,"Yu Mincho",YuMincho,"Hiragino Mincho ProN","Noto Serif CJK JP","Noto Serif JP",serif;letter-spacing:.16em;color:#d6ba78;white-space:nowrap}
.vnnext{font-size:.66rem;color:#d6ba78;opacity:0;transition:opacity .2s;pointer-events:none}
:is(.vnbox,.vndock,.vnnvl).ready:not(.choosing):not(.idle) .vnnext{opacity:1;animation:vnbob 1.1s ease-in-out infinite}
@keyframes vnbob{50%{transform:translateY(3px)}}
@keyframes vnin{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@keyframes vnfade{from{opacity:0}to{opacity:1}}
.vnx{border:0;background:none;color:#a99f90;cursor:pointer;line-height:1}
.vnx:hover{color:#eee7da}

/* ---------- phone: pop-up box ---------- */
.vnbox{position:fixed;left:12px;right:12px;bottom:calc(14px + env(safe-area-inset-bottom,0px));margin:0 auto;max-width:640px;z-index:70;
  background:linear-gradient(180deg,rgba(18,13,28,.94),rgba(12,9,20,.97));border:1px solid rgba(214,186,120,.45);border-radius:3px;
  box-shadow:0 20px 60px -10px rgba(0,0,0,.85),inset 0 0 0 4px rgba(12,9,20,.9),inset 0 0 0 5px rgba(214,186,120,.16);
  padding:24px 20px 18px;color:#eee7da;font-family:"EB Garamond",Georgia,"Yu Mincho",YuMincho,"Hiragino Mincho ProN","Noto Serif CJK JP","Noto Serif JP",serif;cursor:pointer;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);animation:vnin .35s ease both}
.vnbox .vnname{position:absolute;top:-15px;left:16px}
.vnbox .vnx{position:absolute;top:6px;right:8px;width:30px;height:30px;font-size:1.2rem}
.vnbox .vntx{margin:0;min-height:3.4em;font-size:1.12rem;line-height:1.8;font-weight:400}
.vnbox .vnnext{position:absolute;right:16px;bottom:8px}
.vnbox .vnport{position:absolute;right:14px;bottom:calc(100% + 8px);width:86px;height:86px;border:1px solid rgba(214,186,120,.6);box-shadow:0 10px 30px -8px rgba(0,0,0,.8);overflow:hidden;animation:vnin .4s ease both;pointer-events:none}
.vnch{display:flex;flex-direction:column;gap:8px;margin:14px 0 2px}
.vnch button{text-align:left;padding:10px 14px;border:1px solid rgba(214,186,120,.38);background:rgba(214,186,120,.05);color:#eee7da;font:inherit;font-size:1rem;font-weight:400;cursor:pointer;border-radius:2px;animation:vnin .3s ease both}
.vnch button::before{content:"◆";color:#d6ba78;font-size:.6rem;margin-right:10px;vertical-align:2px}
.vnch button:hover,.vnch button:focus-visible{background:rgba(214,186,120,.16);border-color:#d6ba78;outline:0}
body.vnopen{padding-bottom:240px!important}
.vnsum{position:fixed;right:14px;bottom:calc(16px + env(safe-area-inset-bottom,0px));z-index:65;display:inline-flex;align-items:center;gap:10px;
  padding:5px 16px 5px 5px;border:1px solid rgba(214,186,120,.55);border-radius:2px;background:rgba(18,13,28,.94);color:#d6ba78;
  font:italic 1.02rem "EB Garamond",Georgia,"Yu Mincho",YuMincho,"Hiragino Mincho ProN","Noto Serif CJK JP","Noto Serif JP",serif;letter-spacing:.12em;cursor:pointer;box-shadow:0 10px 30px -10px rgba(0,0,0,.8)}
.vnsum:hover{background:rgba(40,30,50,.96)}
.vnsumf{width:34px;height:34px;overflow:hidden;border:1px solid rgba(214,186,120,.5)}

/* ---------- NVL page (the briefing) ---------- */
.vnnvl{position:fixed;inset:0;z-index:80;cursor:pointer;color:#eee7da;font-family:"EB Garamond",Georgia,"Yu Mincho",YuMincho,"Hiragino Mincho ProN","Noto Serif CJK JP","Noto Serif JP",serif;
  background:radial-gradient(900px 500px at 80% -10%,var(--vn-glow,rgba(214,186,120,.12)),transparent 60%),linear-gradient(180deg,var(--vw1,#151026),#0b0812 70%);animation:vnfade .5s ease both}
.vnpage{position:absolute;inset:0;overflow-y:auto;padding:calc(64px + env(safe-area-inset-top,0px)) 28px calc(90px + env(safe-area-inset-bottom,0px));scrollbar-width:none}
.vnpage::-webkit-scrollbar{display:none}
.vnpage>*{max-width:600px;margin-left:auto;margin-right:auto}
.vnhead{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:30px;border-bottom:1px solid rgba(214,186,120,.3);padding-bottom:14px}
.vnday{display:flex;flex-direction:column;gap:6px;min-width:0}
.vnday b{font:italic 400 2.4rem/1.05 "EB Garamond",Georgia,"Yu Mincho",YuMincho,"Hiragino Mincho ProN","Noto Serif CJK JP","Noto Serif JP",serif;letter-spacing:.02em;color:#eee7da}
.vnday span{font:600 .72rem/1 "EB Garamond",Georgia,"Yu Mincho",YuMincho,"Hiragino Mincho ProN","Noto Serif CJK JP","Noto Serif JP",serif;letter-spacing:.32em;text-transform:uppercase;color:#d6ba78}
.vnnvl .vnport{flex:0 0 auto;width:84px;height:84px;border:1px solid rgba(214,186,120,.55);overflow:hidden}
.vnlines p{margin:0 0 1.05em;font-size:1.22rem;line-height:1.85;font-weight:400;letter-spacing:.012em;transition:opacity .4s}
.vnlines p.old{opacity:.6}
.vnnvl .vnch{margin-top:26px}
.vnnvl .vnch button{font-size:1.08rem;padding:12px 16px}
.vnnvl .vnx{position:absolute;top:calc(14px + env(safe-area-inset-top,0px));right:14px;font-size:1.5rem;width:40px;height:40px;z-index:2}
.vnnvl .vnnext{position:absolute;right:28px;bottom:calc(30px + env(safe-area-inset-bottom,0px));font-size:.75rem;z-index:1}
.vnsign{position:absolute;left:28px;top:calc(22px + env(safe-area-inset-top,0px));font:italic 1rem "EB Garamond",Georgia,"Yu Mincho",YuMincho,"Hiragino Mincho ProN","Noto Serif CJK JP","Noto Serif JP",serif;letter-spacing:.14em;color:rgba(214,186,120,.7);pointer-events:none}
.vnnvl::after{content:"";position:absolute;left:0;right:0;bottom:0;height:70px;pointer-events:none;background:linear-gradient(transparent,#0b0812)}
body.vnlock{overflow:hidden}
/* the veil: hides the home page (under the briefing z80, title z95 and prologue z300) while they hand over */
html.vnveil::after{content:"";position:fixed;inset:0;z-index:79;background:#0b0812}

/* ---------- scene card ---------- */
/* Covers the whole screen: everything behind it blurs and dims while the place name shows. */
.vnscene{position:fixed;inset:0;z-index:75;pointer-events:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;
  padding:16px;background:radial-gradient(ellipse at center,rgba(9,6,15,.62),rgba(9,6,15,.38) 70%);
  -webkit-backdrop-filter:blur(10px) saturate(.8);backdrop-filter:blur(10px) saturate(.8);animation:vnscene 1.7s ease both;white-space:nowrap}
.vnscene b,.vnscene span{text-shadow:0 2px 18px rgba(0,0,0,.85)}
.vnscene b{font-size:clamp(2rem,4vw,2.8rem)!important}
.vnscene span{font-size:clamp(.68rem,1vw,.8rem)!important}
.vnscene i{width:clamp(160px,18vw,240px)}
.vnscene b{font:italic 400 2rem/1.1 "EB Garamond",Georgia,"Yu Mincho",YuMincho,"Hiragino Mincho ProN","Noto Serif CJK JP","Noto Serif JP",serif;color:#eee7da;letter-spacing:.03em}
.vnscene span{font:600 .68rem/1 "EB Garamond",Georgia,"Yu Mincho",YuMincho,"Hiragino Mincho ProN","Noto Serif CJK JP","Noto Serif JP",serif;letter-spacing:.3em;text-transform:uppercase;color:#d6ba78}
.vnscene i{display:block;width:160px;height:1px;background:linear-gradient(90deg,transparent,#d6ba78,transparent)}
@keyframes vnscene{0%{opacity:0;letter-spacing:.2em}18%{opacity:1}75%{opacity:1}100%{opacity:0}}

/* ---------- backlog ---------- */
.vnlog{position:fixed;inset:0;z-index:90;background:rgba(6,4,10,.88);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;padding:4vh 16px;animation:vnfade .3s ease both}
.vnlogin{width:min(780px,100%);height:100%;display:flex;flex-direction:column;border:1px solid rgba(214,186,120,.4);background:rgba(14,10,22,.92);font-family:"EB Garamond",Georgia,"Yu Mincho",YuMincho,"Hiragino Mincho ProN","Noto Serif CJK JP","Noto Serif JP",serif;color:#eee7da}
.vnlogin header{display:flex;justify-content:space-between;align-items:center;padding:14px 20px;border-bottom:1px solid rgba(214,186,120,.3)}
.vnlogin header b{font:italic 400 1.5rem "EB Garamond",Georgia,"Yu Mincho",YuMincho,"Hiragino Mincho ProN","Noto Serif CJK JP","Noto Serif JP",serif;letter-spacing:.06em;color:#d6ba78}
.vnlogin .vnx{font-size:1.5rem;width:36px;height:36px}
.vnlogs{flex:1;overflow-y:auto;padding:10px 24px 24px}
.vnlogs h3{margin:22px 0 10px;font:600 .7rem/1 "EB Garamond",Georgia,"Yu Mincho",YuMincho,"Hiragino Mincho ProN","Noto Serif CJK JP","Noto Serif JP",serif;letter-spacing:.3em;text-transform:uppercase;color:rgba(214,186,120,.75)}
.vnlogs p{margin:0 0 14px;font-size:1.08rem;line-height:1.7}
.vnlogs p b{display:block;font:italic 400 .9rem "EB Garamond",Georgia,"Yu Mincho",YuMincho,"Hiragino Mincho ProN","Noto Serif CJK JP","Noto Serif JP",serif;letter-spacing:.14em;color:#d6ba78}
.vnlog0{color:#a99f90}

/* ---------- title screen ---------- */
.vntitle{position:fixed;inset:0;z-index:95;overflow:hidden;background:#0b0812;animation:vnfade .6s ease both;font-family:"EB Garamond",Georgia,"Yu Mincho",YuMincho,"Hiragino Mincho ProN","Noto Serif CJK JP","Noto Serif JP",serif;color:#eee7da}
.vntitle.out{animation:vnfade .45s ease reverse both}
.vntitle .vnbg{position:absolute;inset:-12px;filter:blur(3px) brightness(.8)}
.vntitle .vnbg::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(8,6,14,.9) 0%,rgba(8,6,14,.55) 45%,transparent 75%)}
.vntsprite{position:absolute;right:max(2vw,calc(50vw - 640px));top:5vh;height:185vh;filter:drop-shadow(0 0 30px rgba(0,0,0,.5));animation:vnspin 1.2s .2s ease both;pointer-events:none}
@keyframes vnspin{from{opacity:0;transform:translateX(30px)}to{opacity:1;transform:none}}
.vntl{position:absolute;left:clamp(28px,9vw,160px);top:50%;transform:translateY(-50%);display:flex;flex-direction:column;gap:44px}
.vnlogo{display:flex;flex-direction:column;gap:8px;animation:vnin 1s .3s ease both}
.vnlogo small{font:800 1.1rem/1 "Shippori Mincho",serif;letter-spacing:.6em;color:#d6ba78}
.vnlogo b{font:italic 400 clamp(3.4rem,7vw,5.6rem)/.95 "EB Garamond",Georgia,"Yu Mincho",YuMincho,"Hiragino Mincho ProN","Noto Serif CJK JP","Noto Serif JP",serif;letter-spacing:.02em;color:#f3ecdf;text-shadow:0 4px 30px rgba(0,0,0,.6)}
.vnlogo span{font:600 .78rem/1 "EB Garamond",Georgia,"Yu Mincho",YuMincho,"Hiragino Mincho ProN","Noto Serif CJK JP","Noto Serif JP",serif;letter-spacing:.42em;text-transform:uppercase;color:rgba(214,186,120,.85);padding-top:6px;border-top:1px solid rgba(214,186,120,.4);align-self:flex-start}
.vntm{display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.vntm button{border:0;background:none;color:#eee7da;font:italic 400 1.6rem/1.3 "EB Garamond",Georgia,"Yu Mincho",YuMincho,"Hiragino Mincho ProN","Noto Serif CJK JP","Noto Serif JP",serif;letter-spacing:.06em;padding:4px 0 4px 26px;cursor:pointer;position:relative;opacity:0;animation:vnin .6s ease both;transition:color .2s,padding .2s}
.vntm button:nth-child(1){animation-delay:.7s}.vntm button:nth-child(2){animation-delay:.8s}.vntm button:nth-child(3){animation-delay:.9s}.vntm button:nth-child(4){animation-delay:1s}
.vntm button::before{content:"◆";position:absolute;left:0;top:50%;transform:translateY(-50%) scale(0);font-size:.7rem;color:#d6ba78;transition:transform .2s;font-style:normal}
.vntm button:is(:hover,:focus-visible){color:#d6ba78;padding-left:32px;outline:0}
.vntm button:is(:hover,:focus-visible)::before{transform:translateY(-50%) scale(1)}
.vntcr{position:absolute;left:0;right:0;bottom:calc(22px + env(safe-area-inset-bottom,0px));text-align:center;font:600 .7rem/1 "EB Garamond",Georgia,"Yu Mincho",YuMincho,"Hiragino Mincho ProN","Noto Serif CJK JP","Noto Serif JP",serif;letter-spacing:.3em;text-transform:uppercase;color:rgba(214,186,120,.6);animation:vnpulse 2.6s ease-in-out infinite}
@keyframes vnpulse{50%{opacity:.35}}
@media (max-width:767px){
  .vntsprite{right:50%;transform:translateX(50%);height:150vh;top:3vh;opacity:.55;animation:vnfade 1s ease both}
  .vntitle .vnbg::after{background:linear-gradient(0deg,rgba(8,6,14,.95) 0%,rgba(8,6,14,.6) 55%,rgba(8,6,14,.3))}
  .vntl{top:auto;bottom:calc(70px + env(safe-area-inset-bottom,0px));transform:none;gap:30px}
}

/* =================== STAGE: PC and tablet =================== */
#vnstage{position:fixed;inset:0;z-index:0;overflow:hidden;pointer-events:none}
.vnbg{position:absolute;inset:-14px}
.vnbgsvg{position:absolute;inset:0;width:100%;height:100%;display:block}
#vnstage .vnbg{filter:blur(2.5px) saturate(.92)}
.vnvignette{position:absolute;inset:0;background:radial-gradient(ellipse at 60% 40%,transparent 40%,rgba(5,3,10,.55) 100%),linear-gradient(180deg,transparent 60%,rgba(5,3,10,.5))}
@keyframes vnbreathe{50%{transform:translateY(-3px) scale(1.003)}}
html.vnstage[data-skin="novel"] body{background:#0b0812!important;padding-bottom:calc(var(--vn-dockh) + 40px)!important}
html.vnstage[data-skin="novel"] body::before{display:none}
html.vnstage[data-skin="novel"] body>.wrap{position:relative;z-index:2;margin:22px 0 0 clamp(16px,4vw,72px)!important;width:min(760px,calc(100vw - 330px - 8vw))!important;max-width:none!important;
  padding:6px 22px 22px!important;background:rgba(13,9,20,.74);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border:1px solid rgba(214,186,120,.22);border-radius:4px;
  box-shadow:0 30px 80px -30px rgba(0,0,0,.9),inset 0 0 0 6px rgba(13,9,20,.4),inset 0 0 0 7px rgba(214,186,120,.06);min-height:calc(100vh - 62px - var(--vn-dockh))}
html.vnstage[data-skin="novel"] body :is(.card,.tpanel){background:rgba(255,244,222,.035)!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
html.vnstage[data-skin="novel"] .vnsum{display:none}
html.vnstage[data-skin="novel"] .mark-by{opacity:.6}
@media (max-width:1099px){
  html.vnstage[data-skin="novel"] body>.wrap{width:calc(100vw - 260px - 4vw)!important;margin-left:clamp(14px,2.5vw,40px)!important}
}
@media (orientation:portrait) and (max-width:1099px){
  html.vnstage[data-skin="novel"] body>.wrap{width:calc(100vw - 200px - 4vw)!important}
}

/* the permanent text box */
.vndock{position:fixed;left:clamp(12px,2.5vw,44px);right:clamp(12px,2.5vw,44px);bottom:14px;height:var(--vn-dockh);z-index:40;display:flex;gap:20px;
  padding:20px 24px 12px 20px;color:#eee7da;font-family:"EB Garamond",Georgia,"Yu Mincho",YuMincho,"Hiragino Mincho ProN","Noto Serif CJK JP","Noto Serif JP",serif;cursor:pointer;
  background:linear-gradient(180deg,rgba(22,15,32,.86),rgba(10,7,16,.95));border:1px solid rgba(214,186,120,.5);border-radius:3px;
  box-shadow:0 -10px 60px -20px rgba(0,0,0,.8),inset 0 0 0 5px rgba(10,7,16,.6),inset 0 0 0 6px rgba(214,186,120,.14);
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);transition:opacity .3s,transform .3s;animation:vnin .5s ease both}
.vndock::before{content:"";position:absolute;left:50%;top:-5px;width:9px;height:9px;transform:translateX(-50%) rotate(45deg);background:#15101e;border:1px solid rgba(214,186,120,.7)}
.vnmain{flex:1;min-width:0;position:relative;display:flex;flex-direction:column}
.vndock .vnname{position:absolute;top:-38px;left:-4px}
.vndock .vntx{flex:1;margin:4px 0 0;font-size:clamp(1.08rem,1.25vw,1.3rem);line-height:1.8;font-weight:400;letter-spacing:.012em;overflow:hidden}
.vndock.idle .vntx{color:#d9d0c1}
.vndock .vnnext{position:absolute;right:2px;bottom:34px}
.vnqm{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:4px 16px;padding-top:6px;border-top:1px solid rgba(214,186,120,.16)}
.vnqm button{border:0;background:none;padding:3px 0;color:rgba(214,186,120,.62);font:600 .7rem/1 "EB Garamond",Georgia,"Yu Mincho",YuMincho,"Hiragino Mincho ProN","Noto Serif CJK JP","Noto Serif JP",serif;letter-spacing:.24em;text-transform:uppercase;cursor:pointer;transition:color .2s}
.vnqm button:is(:hover,:focus-visible){color:#f3ecdf;outline:0}
.vnqm button.on{color:#f3ecdf;box-shadow:inset 0 -1px 0 #d6ba78}
/* Mind button beside her name; it glows while the online brain is on */
.vndock .vnnamebar{position:absolute;top:-38px;left:-14px;display:flex;align-items:center;gap:10px}
.vndock .vnnamebar .vnname{position:static}
.vnmind{display:inline-flex;align-items:center;gap:7px;border:1px solid rgba(214,186,120,.4);background:rgba(16,12,26,.82);color:rgba(214,186,120,.8);border-radius:999px;padding:5px 12px 5px 10px;font:600 .66rem/1 "EB Garamond",Georgia,"Yu Mincho",YuMincho,"Hiragino Mincho ProN","Noto Serif CJK JP","Noto Serif JP",serif;letter-spacing:.22em;text-transform:uppercase;cursor:pointer;transition:color .2s,border-color .2s}
.vnmind::before{content:"";width:6px;height:6px;border-radius:50%;background:rgba(214,186,120,.35)}
.vnmind.online::before{background:#9fe3b0;box-shadow:0 0 8px #9fe3b0}
.vnmind:is(:hover,:focus-visible){color:#f3ecdf;border-color:#d6ba78;outline:0}

/* choices float in the middle, like a real VN */
.vnchoice{position:fixed;left:0;right:0;top:0;bottom:calc(var(--vn-dockh) + 28px);z-index:60;display:flex;align-items:center;justify-content:center;background:rgba(5,3,10,.42);animation:vnfade .3s ease both}
.vnchl{display:flex;flex-direction:column;gap:12px;width:min(580px,72vw)}
.vnchl button{position:relative;padding:15px 28px;border:0;border-top:1px solid rgba(214,186,120,.45);border-bottom:1px solid rgba(214,186,120,.45);
  background:linear-gradient(90deg,transparent,rgba(18,13,28,.94) 14%,rgba(18,13,28,.94) 86%,transparent);color:#eee7da;
  font:400 1.18rem/1.3 "EB Garamond",Georgia,"Yu Mincho",YuMincho,"Hiragino Mincho ProN","Noto Serif CJK JP","Noto Serif JP",serif;letter-spacing:.04em;cursor:pointer;animation:vnin .35s ease both;transition:color .2s,background .2s}
.vnchl button:nth-child(2){animation-delay:.06s}.vnchl button:nth-child(3){animation-delay:.12s}.vnchl button:nth-child(4){animation-delay:.18s}.vnchl button:nth-child(5){animation-delay:.24s}
.vnchl button:is(:hover,:focus-visible){color:#d6ba78;outline:0;background:linear-gradient(90deg,transparent,rgba(48,36,58,.96) 14%,rgba(48,36,58,.96) 86%,transparent)}
.vnchl button::before,.vnchl button::after{content:"◆";position:absolute;top:50%;transform:translateY(-50%);font-size:.55rem;color:#d6ba78;opacity:0;transition:opacity .2s}
.vnchl button::before{left:16%}.vnchl button::after{right:16%}
.vnchl button:is(:hover,:focus-visible)::before,.vnchl button:is(:hover,:focus-visible)::after{opacity:1}

/* NVL over the stage: the room and Shiori stay faintly visible */
html.vnstage .vnnvl{background:linear-gradient(90deg,rgba(8,6,14,.94) 0%,rgba(8,6,14,.88) 55%,rgba(8,6,14,.55) 100%)}
html.vnstage .vnnvl::after{background:linear-gradient(transparent,rgba(8,6,14,.9))}
html.vnstage .vnnvl .vnport{display:none}
html.vnstage .vnpage>*{max-width:640px;margin-left:clamp(28px,9vw,160px);margin-right:auto}
html.vnstage .vnhead{justify-content:flex-start}

@media (prefers-reduced-motion:reduce){
  .vnbox,.vnch button,.vnnvl,.vnspw,.vnsp.on,.vntsprite,.vndock,.vnchl button,.vntm button,.vnlogo,.vntitle,.vnchoice,.vnlog{animation:none!important;opacity:1}
  :is(.vnbox,.vndock,.vnnvl).ready .vnnext,.vntcr{animation:none}
}
html.vnnvlon body>.wrap,html.vnnvlon .vndock,html.vnnvlon .vnshow{opacity:0!important;pointer-events:none;transition:opacity .4s}
html.vnstage .vnnvl{background:linear-gradient(90deg,rgba(8,6,14,.86) 0%,rgba(8,6,14,.7) 50%,rgba(8,6,14,.2) 100%)}
html.vnstage .vnpage>*{max-width:min(640px,calc(100vw - 420px))}

/* =================== Shiori: full-body poses =================== */
/* stage sprite: two stacked images cross-fade between poses */
.vnspw{position:absolute;right:clamp(0px,5vw,120px);top:4vh;height:168vh;width:78vh;animation:vnspin 1s ease both;pointer-events:none}
.vnspw>.vnsp{position:absolute;top:0;left:50%;height:100%;transform:translateX(-50%);opacity:0;transition:opacity .45s ease;filter:drop-shadow(0 0 26px rgba(0,0,0,.5));user-select:none;-webkit-user-drag:none}
.vnspw>.vnsp.on{opacity:1;animation:vnbreathe 7s 1s ease-in-out infinite}
@keyframes vnbreathe{0%,100%{transform:translateX(-50%)}50%{transform:translateX(-50%) translateY(-3px)}}
.vnzz{position:absolute;left:60%;top:3%;font:italic 600 1.6rem/1 "EB Garamond",Georgia,"Yu Mincho",YuMincho,"Hiragino Mincho ProN","Noto Serif CJK JP","Noto Serif JP",serif;color:#d6ba78;opacity:0;transition:opacity .4s;text-shadow:0 2px 10px rgba(0,0,0,.7)}
.vnzz i,.vnzz b{font:inherit;display:inline-block;margin-left:.15em}
.vnzz i{font-size:.8em;transform:translateY(-.5em)}.vnzz b{font-size:.62em;transform:translateY(-1.1em)}
.vnspw.zz .vnzz{opacity:1;animation:vnzz 3s ease-in-out infinite}
@keyframes vnzz{50%{transform:translate(4px,-6px)}}
@media (max-width:1099px){.vnspw{right:-60px;height:150vh;width:70vh}}
@media (orientation:portrait) and (max-width:1099px){.vnspw{height:118vh;width:55vh;right:-50px;top:6vh}}
html.vnnvlon .vnspw{right:clamp(0px,4vw,100px)}

/* text box without a face window: the sprite carries the expression */
.vndock{padding:24px 34px 12px}
.vndock .vnname{left:-14px}

/* bust cut from the current pose (phone box, briefing on phone, summon button) */
.vnbust{display:block;width:100%;height:100%;background-repeat:no-repeat;background-size:auto 400%;background-position:42% 1.5%;
  -webkit-mask-image:linear-gradient(#000 72%,transparent);mask-image:linear-gradient(#000 72%,transparent);transition:background-image .2s}

.vnbox .vnport,.vnnvl .vnport{border:0!important;box-shadow:none!important;overflow:visible;width:104px!important;height:112px!important;filter:drop-shadow(0 8px 16px rgba(0,0,0,.6))}
.vnbox .vnport{bottom:calc(100% - 6px)!important}
.vnsumf{width:38px!important;height:38px!important;border-radius:50%;border:1px solid rgba(214,186,120,.55)!important;overflow:hidden;background:#221a2e}
.vnsumf .vnbust{-webkit-mask-image:none;mask-image:none;background-size:auto 520%}
.vnsumf{display:inline-block;flex:0 0 auto}

/* ===== high-res sprites and scene illustrations ===== */
.vnspw{width:86vh}
@media (max-width:1099px){.vnspw{width:76vh}}
@media (orientation:portrait) and (max-width:1099px){.vnspw{width:60vh}}
.vnbust[data-pose="calm"]{background-position:47.4% 0.6%}.vnbust[data-pose="happy"]{background-position:47.0% 0.6%}.vnbust[data-pose="shy"]{background-position:44.8% 0.6%}.vnbust[data-pose="surprised"]{background-position:47.0% 0.6%}.vnbust[data-pose="thinking"]{background-position:48.2% 0.6%}.vnbust[data-pose="serious"]{background-position:48.2% 0.6%}.vnbust[data-pose="sad"]{background-position:43.3% 0.6%}.vnbust[data-pose="back"]{background-position:48.6% 0.6%}.vnbust[data-pose="reading"]{background-position:60.3% 0.6%}.vnbust[data-pose="welcome"]{background-position:42.9% 0.6%}
/* briefing page: the scene illustration (beside the text on the stage, a dim backdrop on phones) */
.vncg{position:absolute;inset:0;background-size:cover;background-position:center 18%;opacity:.2;pointer-events:none}
.vnnvl .vnpage{z-index:1}
html.vnstage .vnnvl{background:linear-gradient(90deg,rgba(9,6,15,.97),rgba(9,6,15,.94))!important}
html.vnstage .vncg{left:auto;width:min(50vw,78vh);opacity:1;-webkit-mask-image:linear-gradient(90deg,transparent,#000 24%);mask-image:linear-gradient(90deg,transparent,#000 24%)}
html.vnstage .vncg::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(9,6,15,.25),transparent 30%,transparent 75%,rgba(9,6,15,.6))}
html.vnnvlon .vnspw{opacity:0;transition:opacity .4s}
html.vnstage .vnpage>*{max-width:min(640px,calc(100vw - min(50vw,78vh) - 9vw))}
html.vnstage .vnsign{z-index:2}
/* title screen: one full illustration */
.vncgt{position:absolute;inset:0;background-size:cover;background-position:center;animation:vnfade 1.2s ease both}
.vncgt::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(8,6,14,.88) 0%,rgba(8,6,14,.55) 38%,transparent 62%)}
@media (max-width:767px),(orientation:portrait){.vncgt::after{background:linear-gradient(0deg,rgba(8,6,14,.95) 0%,rgba(8,6,14,.55) 50%,rgba(8,6,14,.15))}}
/* backlog: the reading-at-the-desk illustration, dimmed */
.vnlog{background:linear-gradient(rgba(6,4,10,.86),rgba(6,4,10,.9)),var(--vnlogcg,none) center/cover!important}

/* ===== the input bar: tell Shiori what to do ===== */
:root[data-skin="novel"]{--vn-dockh:244px}
.vnask{display:flex;gap:8px;align-items:center;margin:8px 0 6px;cursor:auto}
.vnin{flex:1;min-width:0;height:38px;padding:0 14px;border:1px solid rgba(214,186,120,.38)!important;border-radius:2px!important;background:rgba(255,244,222,.05)!important;color:#eee7da!important;
  font:400 1rem "EB Garamond",Georgia,"Yu Mincho","Hiragino Mincho ProN",serif!important;box-shadow:none!important;outline:0}
.vnin::placeholder{color:rgba(238,231,218,.42);font-style:italic}
.vnin:focus{border-color:#d6ba78!important;background:rgba(255,244,222,.08)!important}
.vnsend,.vnundo{flex:0 0 auto;height:38px;border:1px solid rgba(214,186,120,.5);border-radius:2px;background:transparent;color:#d6ba78;cursor:pointer;font:600 .72rem/1 "EB Garamond",Georgia,serif;letter-spacing:.18em;text-transform:uppercase}
.vnsend{width:44px;font-size:.9rem;letter-spacing:0}
.vnundo{padding:0 12px}
.vnsend:hover,.vnundo:hover{background:rgba(214,186,120,.14);color:#f3ecdf}
.vnundo[hidden]{display:none}
.vndock .vntx{min-height:0}
.vnbox .vnask{margin-top:14px}
.vnlogs p.vnyou{padding-left:18px;border-left:2px solid rgba(214,186,120,.35);color:#cfc6b6}
.vnlogs p.vnyou b{color:#a99f90}

/* ===== "Shiori's brain" panel ===== */
.vnai .vnaiin{height:auto;max-height:92vh}
.vnaibody{padding:18px 22px 22px;display:flex;flex-direction:column;gap:12px;overflow-y:auto}
.vnairow{display:flex;gap:12px;align-items:flex-start;padding:12px 14px;border:1px solid rgba(214,186,120,.3);cursor:pointer}
.vnairow:has(input:checked){border-color:#d6ba78;background:rgba(214,186,120,.08)}
.vnairow input{accent-color:#d6ba78;margin-top:5px}
.vnairow span{display:flex;flex-direction:column;gap:3px}
.vnairow b{font:400 1.1rem "EB Garamond",Georgia,serif;color:#eee7da}
.vnairow small{color:#a99f90;font-size:.92rem;line-height:1.45}
.vnaiurl{display:flex;flex-direction:column;gap:6px}
.vnaiurl span{font:600 .7rem/1 "EB Garamond",Georgia,serif;letter-spacing:.24em;text-transform:uppercase;color:rgba(214,186,120,.8)}
.vnainote{margin:0;color:#a99f90;font-size:.92rem;line-height:1.55;border-left:2px solid rgba(214,186,120,.35);padding-left:12px}
.vnaibtns{display:flex;align-items:center;gap:12px}
.vnaibtns .vnsend{width:auto;padding:0 16px;letter-spacing:.18em}
.vnaimsg{flex:1;color:#d6ba78;font-size:.95rem}
.vnairow input[type=radio]{width:16px!important;height:16px!important;min-width:0!important;flex:0 0 16px;padding:0!important;margin:5px 0 0!important;box-shadow:none!important;background:none!important}
.vnairow span{flex:1;min-width:0;text-align:left}
.vnaiadv summary{cursor:pointer;color:#a99f90;font-size:.92rem;letter-spacing:.04em;padding:2px 0}
.vnaiadv summary:hover{color:#d6ba78}
.vnaiadv[open] summary{margin-bottom:10px}

/* ===== Text box and app panel never overlap =====
   Wide screens: the app keeps the left column, Shiori's box sits in the right column under her.
   Narrower screens: the box shrinks to one line + input while she isn't speaking. */
@media (min-width:1180px){
  html.vnstage[data-skin="novel"]{--vn-pl:clamp(20px,3vw,64px);--vn-pw:min(760px,calc(100vw - 520px))}
  html.vnstage[data-skin="novel"] body{padding-bottom:22px!important}
  html.vnstage[data-skin="novel"] body>.wrap{margin-left:var(--vn-pl)!important;width:var(--vn-pw)!important;min-height:calc(100vh - 44px)!important;margin-bottom:0}
  html.vnstage .vndock{left:calc(var(--vn-pl) + var(--vn-pw) + 28px);right:clamp(14px,2vw,36px);height:auto;min-height:var(--vn-dockh);bottom:18px;padding:26px 26px 12px}
  html.vnstage .vndock .vntx{font-size:clamp(1.05rem,1.15vw,1.22rem)}
  html.vnstage .vnqm{gap:4px 12px}
  html.vnstage .vnchoice{left:calc(var(--vn-pl) + var(--vn-pw) + 28px);bottom:calc(var(--vn-dockh) + 36px)}
  html.vnstage .vnchl{width:min(520px,92%)}
  html.vnstage .vnspw{right:clamp(0px,3vw,60px)}
}
@media (max-width:1179px){
  html.vnstage .vndock.idle{height:auto;min-height:0}
  html.vnstage .vndock.idle .vntx{flex:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:2px}
  html.vnstage .vndock.idle .vnnext{display:none}
}

/* ===== Hide: the app panel goes away and the scene takes the screen =====
   Text box runs the full width along the bottom and Shiori stands in the middle. */
html.vnstage.vnhide[data-skin="novel"] body>.wrap{opacity:0;visibility:hidden;pointer-events:none;transition:opacity .35s,visibility 0s .35s}
html.vnstage.vnhide .vndock{left:clamp(16px,6vw,140px);right:clamp(16px,6vw,140px);bottom:18px;height:auto;min-height:var(--vn-dockh)}
html.vnstage.vnhide .vndock.idle .vntx{white-space:normal}
html.vnstage.vnhide .vnchoice{left:0;right:0}
html.vnstage.vnhide .vnspw{left:0;right:0;margin-inline:auto;transition:none}
html.vnstage.vnhide body{overflow:hidden}

/* ===== Painted places for the time of day: one painted place per tab ===== */
.vnhall{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 45%;opacity:0;transition:opacity .7s ease}
#vnstage.hall .vnhall{opacity:1}
#vnstage.hall .vnbg{filter:blur(1.5px) saturate(.95) brightness(.88)}
html.vnhide #vnstage.hall .vnbg{filter:saturate(.98) brightness(.95)}
.vnhall[data-place="tower"]{object-position:50% 22%}
.vnhall[data-place="board"]{object-position:50% 25%}

/* typed while she is still thinking: the message stays in the box and gives a small shake */
.vnin.vnwait{animation:vnshake .4s ease}
@keyframes vnshake{20%,60%{transform:translateX(-4px)}40%,80%{transform:translateX(4px)}}

/* ===== Ren (second companion): his sprites are wider, so the phone bust is framed separately ===== */
html[data-vnchar="ren"] .vnbust,html[data-vnchar="ren"] .vnbust[data-pose]{background-position:44% 1.5%}
html[data-vnchar="ren"] .vnsumf .vnbust{background-position:44.5% 1%}
.vnport{cursor:pointer}
/* the character on stage can be tapped (only where the sprite is drawn) to switch companions */
#vnstage .vnspw>.vnsp.on{pointer-events:auto}
/* the name tag switches companions: show it as a button with a small swap mark */
.vndock .vnname,.vnbox .vnname{cursor:pointer;transition:border-color .2s,color .2s}
.vndock .vnname::after,.vnbox .vnname::after{content:"⇄";margin-left:.55em;font-style:normal;font-size:.8em;opacity:.55}
.vndock .vnname:is(:hover,:focus-visible),.vnbox .vnname:is(:hover,:focus-visible){border-color:#d6ba78;color:#f3ecdf}

/* engine choice inside the Online option of the Mind panel */
.vneng{display:flex;gap:8px;margin-top:8px;flex-wrap:wrap}
.vneng label{display:flex;flex-direction:column;gap:1px;padding:7px 12px;border:1px solid rgba(214,186,120,.3);cursor:pointer;min-width:96px}
.vneng label:has(input:checked){border-color:#d6ba78;background:rgba(214,186,120,.12)}
.vneng input{position:absolute;opacity:0;pointer-events:none}
.vneng b{font-size:.92rem;color:#f3ecdf}
.vneng i{font-style:normal;font-size:.78rem;color:#a99f90}
.vneng label:has(input:focus-visible){outline:1px solid #d6ba78}
.vnairow .vneng{flex-direction:row}
.vnairow .vneng label{flex:1}
.vnairow .vneng{flex-direction:column}
.vnairow .vneng label{flex:none;flex-direction:row;align-items:baseline;gap:12px}
.vnairow .vneng b{min-width:84px}
@media (max-width:520px){.vnairow .vneng label{flex-direction:column;gap:2px}}
/* an engine that's switched off for now: shown, greyed, can't be picked */
.vneng label.off{opacity:.42;cursor:not-allowed;border-style:dashed}
.vneng label.off b,.vneng label.off i{text-decoration:none}
/* phone pop-up box: name tag and Mind button side by side on the top edge */
.vnbox .vnnamebar{position:absolute;top:-15px;left:16px;display:flex;align-items:center;gap:8px;z-index:1}
.vnbox .vnnamebar .vnname{position:static}
.vnbox .vnmind{padding:4px 10px 4px 8px}
/* Mind: the same plaque as the name tag (dark gradient, gold rule, italic serif); a small star glows when online */
.vnmind,.vnbox .vnmind{border-radius:0;padding:4px 16px 5px 13px;gap:8px;background:linear-gradient(180deg,#221a2e,#15101e);border:1px solid rgba(214,186,120,.65);
  font:italic 400 1.05rem/1.2 "EB Garamond",Georgia,"Yu Mincho",YuMincho,"Hiragino Mincho ProN","Noto Serif CJK JP","Noto Serif JP",serif;letter-spacing:.16em;text-transform:none;color:#d6ba78}
.vnmind::before{content:"✦";width:auto;height:auto;border-radius:0;background:none;font-style:normal;font-size:.72em;color:rgba(214,186,120,.38);box-shadow:none;transition:color .2s,text-shadow .2s}
.vnmind.online::before{background:none;box-shadow:none;color:#f3d98f;text-shadow:0 0 8px rgba(243,217,143,.8)}
.vnmind:is(:hover,:focus-visible){color:#f3ecdf;border-color:#d6ba78}

/* =================== The prologue: a full-screen light-novel page (vnprologue.js) =================== */
.vnpro{position:fixed;inset:0;z-index:300;background:#07050b;color:#ece4d6;overflow:hidden;opacity:0;transition:opacity .6s ease;cursor:pointer;
  font-family:"EB Garamond",Georgia,"Yu Mincho",YuMincho,"Hiragino Mincho ProN","Noto Serif CJK JP","Noto Serif JP",serif}
.vnpro.in{opacity:1}.vnpro.out{opacity:0;pointer-events:none}
.vnpbg{position:absolute;inset:-12px;background:#07050b center/cover no-repeat;opacity:0;transition:opacity 1.4s ease;filter:saturate(.9)}
.vnpbg.on{opacity:1}.vnpbg.instant{transition:none}
.vnpsp{position:absolute;bottom:-38vh;height:130vh;opacity:0;transform:translateY(14px);transition:opacity .8s ease,transform .8s ease;pointer-events:none}
.vnpsp.on{opacity:1;transform:none}
.vnpsp img{height:100%;display:block;filter:drop-shadow(0 0 30px rgba(0,0,0,.6))}
.vnpsp[data-side="center"]{left:50%;margin-left:-28vh}
.vnpsp[data-side="left"]{left:4vw}
.vnpsp[data-side="right"]{right:4vw}
/* the page: the painting stays visible, the words sit on a soft dark veil */
.vnpshade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(7,5,11,.2),rgba(7,5,11,.74) 22%,rgba(7,5,11,.74) 78%,rgba(7,5,11,.2))}
.vnpage2{position:absolute;inset:0;display:flex;justify-content:center;padding:clamp(56px,9vh,96px) clamp(20px,6vw,80px) clamp(70px,11vh,110px)}
.vnplines{width:min(720px,100%);overflow-y:auto;scrollbar-width:none;mask-image:linear-gradient(180deg,transparent,#000 24px)}
.vnplines::-webkit-scrollbar{display:none}
.vnptitle{min-height:60vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.9em;text-align:center;animation:vnpin 1.2s ease both}
.vnptitle span{font:italic 400 clamp(.95rem,1.3vw,1.15rem)/1.3 "EB Garamond",Georgia,serif;letter-spacing:.18em;color:#c9b8e8}
.vnpro .vnptitle h1{background:none;border:0;box-shadow:none;border-radius:0;backdrop-filter:none;-webkit-backdrop-filter:none;width:auto;margin:0;font:500 clamp(2.4rem,6vw,4.2rem)/1 "EB Garamond",Georgia,serif;letter-spacing:.42em;padding-left:.42em;color:#f3d98f;text-shadow:0 0 24px rgba(214,186,120,.35),0 2px 6px rgba(0,0,0,.8)}
.vnptitle em{margin-top:2.2em;font-size:.8rem;letter-spacing:.3em;text-transform:uppercase;font-style:normal;color:rgba(236,228,214,.45);animation:vnpblink 2.4s ease-in-out infinite}
@keyframes vnpblink{50%{opacity:.35}}
.vnpro.titled .vnpnext{display:none}
.vnplines p{margin:0 0 1.05em;font-size:clamp(1.05rem,1.35vw,1.28rem);line-height:1.85;letter-spacing:.01em;text-shadow:0 1px 3px rgba(0,0,0,.8);animation:vnpin .4s ease both}
.vnplines p i{color:#e7dcc6}
.vnplines p b{color:#f3d98f;font-weight:600}
.vnplines p.note{margin:1.2em 0;padding:.6em 0 .6em 1.1em;border-left:2px solid rgba(214,186,120,.6);font-style:italic;color:#c9b8e8}
.vnplines p.note i{color:#c9b8e8}
.vnpscene{margin:0 0 1.4em;font:italic 400 clamp(1.1rem,1.6vw,1.4rem)/1.3 "EB Garamond",Georgia,serif;letter-spacing:.14em;color:#d6ba78;text-shadow:0 1px 3px rgba(0,0,0,.8);animation:vnpin .6s ease both}
@keyframes vnpin{from{opacity:0;transform:translateY(4px)}}
.vnpnext{position:absolute;right:max(24px,calc(50vw - 360px));bottom:clamp(48px,8vh,80px);color:#d6ba78;font-size:.8rem;opacity:0;transition:opacity .2s}
.vnpro.ready .vnpnext{opacity:1;animation:vnpbob 1.2s ease-in-out infinite}
@keyframes vnpbob{50%{transform:translateY(4px)}}
.vnpctl{position:absolute;top:14px;right:16px;display:flex;gap:6px;z-index:2}
.vnpctl button{background:rgba(16,12,26,.7);border:1px solid rgba(214,186,120,.45);color:#d6ba78;font:600 .66rem/1 "EB Garamond",Georgia,serif;letter-spacing:.2em;text-transform:uppercase;padding:8px 12px;cursor:pointer}
.vnpctl button[data-a="close"]{font-size:1rem;letter-spacing:0;padding:4px 11px}
.vnpctl button.on,.vnpctl button:hover{color:#f3ecdf;border-color:#d6ba78}
@media (max-width:767px){
  .vnpsp{height:92vh;bottom:-12vh}.vnpsp[data-side="center"]{margin-left:-24vh}.vnpsp[data-side="left"]{left:-12vw}.vnpsp[data-side="right"]{right:-14vw}
  .vnpshade{background:rgba(7,5,11,.72)}
}
@media (prefers-reduced-motion:reduce){.vnpbg,.vnpsp,.vnpro{transition:none}.vnplines p,.vnpscene{animation:none}}
/* the restore confirmation opened from the title screen's Load sits above it */
.vntitle ~ .ovl{z-index:120}

/* ---------- Home, refined: a window onto the clock tower, framed countdown, an exam timeline ---------- */
/* gold corner brackets on the home cards (quiet frames rather than heavy borders) */
html:root:root[data-skin="novel"] body main#view>section.card{position:relative}
html:root:root[data-skin="novel"] body main#view>section.card::after{content:"";position:absolute;inset:5px;pointer-events:none;opacity:.55;background:linear-gradient(var(--vn-gold),var(--vn-gold)) left top/14px 1px no-repeat,linear-gradient(var(--vn-gold),var(--vn-gold)) left top/1px 14px no-repeat,linear-gradient(var(--vn-gold),var(--vn-gold)) right top/14px 1px no-repeat,linear-gradient(var(--vn-gold),var(--vn-gold)) right top/1px 14px no-repeat,linear-gradient(var(--vn-gold),var(--vn-gold)) left bottom/14px 1px no-repeat,linear-gradient(var(--vn-gold),var(--vn-gold)) left bottom/1px 14px no-repeat,linear-gradient(var(--vn-gold),var(--vn-gold)) right bottom/14px 1px no-repeat,linear-gradient(var(--vn-gold),var(--vn-gold)) right bottom/1px 14px no-repeat}
/* Next up: the tower's clock window at this hour, fading in from the right behind the words */
html:root:root[data-skin="novel"] body .herocard{background:linear-gradient(90deg,#120c1a 0%,#120c1a 34%,rgba(18,12,26,.78) 52%,rgba(18,12,26,.25) 78%,rgba(18,12,26,.1) 100%),linear-gradient(0deg,#120c1a 0%,rgba(18,12,26,0) 46%),var(--vntower,none) 19% 0%/130% auto no-repeat,#120c1a!important;overflow:hidden}
html:root:root[data-skin="novel"] body .herocard .hero-title{font-size:2.15rem!important;letter-spacing:.02em;text-shadow:0 2px 10px rgba(0,0,0,.6)}
html:root:root[data-skin="novel"] body .herocard>.lbl:first-of-type::before{content:"✦";margin-right:8px;font-size:.75em;color:var(--vn-gold)}
html:root:root[data-skin="novel"] body .herocard .exsw{background:rgba(14,9,20,.65)!important;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}
/* the countdown: four framed tiles with small gold diamonds between them */
html:root:root[data-skin="novel"] body .herocard .timer.big{gap:22px;margin-top:18px}
html:root:root[data-skin="novel"] body .herocard .unit{position:relative;background:rgba(12,8,18,.62)!important;border:1px solid rgba(214,186,120,.32)!important;border-radius:3px!important;box-shadow:inset 0 0 0 3px rgba(214,186,120,.04)!important;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);padding:10px 4px 8px!important}
html:root:root[data-skin="novel"] body .herocard .unit+.unit::before{content:"";position:absolute;left:-14.5px;top:50%;width:5px;height:5px;transform:translate(0,-50%) rotate(45deg);background:var(--vn-gold);opacity:.75}
html:root:root[data-skin="novel"] body .herocard .unit b{font-size:2rem!important;line-height:1.1}
html:root:root[data-skin="novel"] body .herocard .unit span{font-variant:small-caps;letter-spacing:.16em;text-transform:lowercase;color:#bca98a!important}
/* the syllabus hint: a quiet pill with an arrow instead of a dashed box */
html:root:root[data-skin="novel"] body .lkhint{border:1px solid rgba(214,186,120,.22)!important;border-style:solid!important;border-radius:999px!important;background:rgba(18,12,26,.6)!important}
html:root:root[data-skin="novel"] body .lkhint::after{content:"›";margin-left:auto;padding-left:10px;font-size:1.2rem;line-height:1;color:var(--vn-gold);opacity:.8}
/* Coming after: a slim gold thread with a diamond per exam (the nearest one filled) */
html:root:root[data-skin="novel"] body .up{position:relative;z-index:0;padding-left:24px!important;border-top:1px solid rgba(214,186,120,.14)!important}
html:root:root[data-skin="novel"] body .up::before{content:"";position:absolute;z-index:1;left:4px;top:50%;width:7px;height:7px;transform:translate(0,-50%) rotate(45deg);border:1px solid var(--vn-gold);background:#140e1c}
html:root:root[data-skin="novel"] body .up::after{content:"";position:absolute;z-index:0;left:8px;top:0;bottom:0;width:1px;background:rgba(214,186,120,.32)}
html:root:root[data-skin="novel"] body .lbl+.up{border-top-color:rgba(214,186,120,.32)!important}
html:root:root[data-skin="novel"] body .lbl+.up::before{background:var(--vn-gold);box-shadow:0 0 8px rgba(214,186,120,.6)}
html:root:root[data-skin="novel"] body .lbl+.up::after{top:50%}
html:root:root[data-skin="novel"] body .up:last-child::after{bottom:50%}
html:root:root[data-skin="novel"] body .lbl+.up:last-child::after{display:none}
html:root:root[data-skin="novel"] body .up>span:first-child{letter-spacing:.04em}
html:root:root[data-skin="novel"] body .up>.lbl{color:var(--vn-gold)!important}
/* "Created by", set between two fine rules */
html:root:root[data-skin="novel"] body .mark-by::before,html:root:root[data-skin="novel"] body .mark-by::after{content:"";display:inline-block;width:42px;height:1px;vertical-align:middle;margin:0 12px;background:linear-gradient(90deg,transparent,rgba(214,186,120,.55))}
html:root:root[data-skin="novel"] body .mark-by::after{background:linear-gradient(90deg,rgba(214,186,120,.55),transparent)}
@media (max-width:560px){html:root:root[data-skin="novel"] body .herocard .timer.big{gap:12px}html:root:root[data-skin="novel"] body .herocard .unit+.unit::before{left:-8.5px}html:root:root[data-skin="novel"] body .herocard .unit b{font-size:1.6rem!important}}

/* ---------- the nav: one bar, Home set into its rounded end, starred separators ---------- */
html:root:root:root[data-skin="novel"] body .nav.split{--nh:64px;position:relative;height:var(--nh);min-height:var(--nh);gap:0!important;padding:0 calc(var(--nh) * .52) 0 calc(var(--nh) * 1.16)!important;align-items:center!important;isolation:isolate}
html:root:root:root[data-skin="novel"] body .nav.split::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;border-style:solid;border-color:transparent;border-width:0 var(--nh) 0 calc(var(--nh) * 1.1);border-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='100' viewBox='0 0 600 100'%3E%3Cdefs%3E%3ClinearGradient id='f' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23150f20'/%3E%3Cstop offset='1' stop-color='%230b0812'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M600 3 H560 C574 3 582 28 596 50 C582 72 574 97 560 97 H74 C40 97 10 76 8 50 C10 24 40 3 74 3 Z' fill='url(%23f)' fill-opacity='.94'/%3E%3Cpath d='M560 3 C574 3 582 28 596 50 C582 72 574 97 560 97 H74 C40 97 10 76 8 50 C10 24 40 3 74 3 Z' fill='none' stroke='%23d2ae94' stroke-opacity='.8' stroke-width='1.1'/%3E%3Cpath d='M552 8 C563 8 570 29 581 50 C570 71 563 92 552 92 H74 C44 92 16 74 14 50 C16 26 44 8 74 8 Z' fill='none' stroke='%23d2ae94' stroke-opacity='.28' stroke-width='1'/%3E%3Cpath d='M556 3 c3 -2 6 -1.6 7.5 .6 M556 97 c3 2 6 1.6 7.5 -.6' fill='none' stroke='%23d2ae94' stroke-opacity='.7' stroke-width='1'/%3E%3Cpath d='M0 50 H12' stroke='%23d2ae94' stroke-opacity='.6' stroke-width='1'/%3E%3Cpath d='M5 44.5 Q5.88 49.12 10.5 50 Q5.88 50.88 5 55.5 Q4.12 50.88 -0.5 50 Q4.12 49.12 5 44.5Z' fill='%23e2c58c' opacity='0.9'/%3E%3Cpath d='M588 50 H600' stroke='%23d2ae94' stroke-opacity='.6' stroke-width='1'/%3E%3Cpath d='M597 44.5 Q597.88 49.12 602.5 50 Q597.88 50.88 597 55.5 Q596.12 50.88 591.5 50 Q596.12 49.12 597 44.5Z' fill='%23e2c58c' opacity='0.9'/%3E%3C/svg%3E") 0 100 0 110 fill / 0 var(--nh) 0 calc(var(--nh) * 1.1) stretch}
/* Home: a lavender medallion with a gold ring, set into the bar's left end */
html:root:root:root[data-skin="novel"] body .nav.split>.navhome{position:absolute!important;left:calc(var(--nh) * .4)!important;top:calc(var(--nh) * .16)!important;width:calc(var(--nh) * .68)!important;height:calc(var(--nh) * .68)!important;padding:0!important;margin:0!important;border-radius:50%!important;border:1.5px solid #e2c58c!important;background:radial-gradient(circle at 50% 38%,#9a86bd 0%,#6f5c95 45%,#463a63 100%)!important;box-shadow:0 0 0 1px rgba(20,12,28,.9),inset 0 2px 6px rgba(255,255,255,.14),inset 0 -5px 10px rgba(20,10,30,.45)!important;color:transparent!important;z-index:2;overflow:visible!important;transition:box-shadow .25s,filter .25s}
html:root:root:root[data-skin="novel"] body .nav.split>.navhome svg{display:none!important}
html:root:root:root[data-skin="novel"] body .nav.split>.navhome::after{content:"";position:absolute;inset:17%;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cdefs%3E%3ClinearGradient id='h' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23fbf7ff'/%3E%3Cstop offset='1' stop-color='%23c9b9e3'/%3E%3C/linearGradient%3E%3CradialGradient id='d' cx='.5' cy='.7' r='.8'%3E%3Cstop offset='0' stop-color='%23ffe6a8'/%3E%3Cstop offset='1' stop-color='%23e7b45c'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cpath d='M24 2.4 Q24.576 5.4239999999999995 27.6 6 Q24.576 6.5760000000000005 24 9.6 Q23.424 6.5760000000000005 20.4 6 Q23.424 5.4239999999999995 24 2.4Z' fill='%23f6e3b5' opacity='1'/%3E%3Cpath d='M24 12 L41 26.5 L37.5 26.5 L37.5 40 L10.5 40 L10.5 26.5 L7 26.5 Z' fill='url(%23h)' stroke='%23fffaf0' stroke-opacity='.5' stroke-width='.6' stroke-linejoin='round'/%3E%3Cpath d='M20.5 40 V31.5 a3.5 3.5 0 0 1 7 0 V40 Z' fill='url(%23d)'/%3E%3C/svg%3E") center/contain no-repeat;filter:drop-shadow(0 1px 2px rgba(20,10,30,.5))}
html:root:root:root[data-skin="novel"] body .nav.split>.navhome::before{content:""!important;display:block!important;position:absolute;left:50%;top:50%;width:calc(var(--nh) * 1.01);height:calc(var(--nh) * 1.59);transform:translate(-50%,-50%);opacity:0;transition:opacity .25s;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='260' viewBox='0 0 140 260'%3E%3Cdefs%3E%3ClinearGradient id='v' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23e2c58c' stop-opacity='0'/%3E%3Cstop offset='.3' stop-color='%23e2c58c' stop-opacity='.45'/%3E%3Cstop offset='.7' stop-color='%23e2c58c' stop-opacity='.45'/%3E%3Cstop offset='1' stop-color='%23e2c58c' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M70 6 V254' stroke='url(%23v)' stroke-width='1'/%3E%3Cpath d='M70 67 Q71.2 73.3 77.5 74.5 Q71.2 75.7 70 82 Q68.8 75.7 62.5 74.5 Q68.8 73.3 70 67Z' fill='%23e2c58c' opacity='1'/%3E%3Cpath d='M70 178 Q71.2 184.3 77.5 185.5 Q71.2 186.7 70 193 Q68.8 186.7 62.5 185.5 Q68.8 184.3 70 178Z' fill='%23e2c58c' opacity='1'/%3E%3Cpath d='M23 124.5 Q23.88 129.12 28.5 130 Q23.88 130.88 23 135.5 Q22.12 130.88 17.5 130 Q22.12 129.12 23 124.5Z' fill='%23e2c58c' opacity='0.9'/%3E%3Cpath d='M117 124.5 Q117.88 129.12 122.5 130 Q117.88 130.88 117 135.5 Q116.12 130.88 111.5 130 Q116.12 129.12 117 124.5Z' fill='%23e2c58c' opacity='0.9'/%3E%3C/svg%3E") center/100% 100% no-repeat;pointer-events:none;z-index:-1}
html:root:root:root[data-skin="novel"] body .nav.split>.navhome:not(.on){border-color:rgba(226,197,140,.55)!important;background:radial-gradient(circle at 50% 38%,#6e5d8c 0%,#4b3f68 50%,#2e2540 100%)!important;box-shadow:0 0 0 1px rgba(20,12,28,.9),inset 0 2px 6px rgba(255,255,255,.1)!important}
html:root:root:root[data-skin="novel"] body .nav.split>.navhome.on{box-shadow:0 0 0 1px rgba(20,12,28,.9),0 0 12px rgba(226,197,140,.5),0 0 22px rgba(160,130,210,.35),inset 0 2px 6px rgba(255,255,255,.18),inset 0 -5px 10px rgba(20,10,30,.45)!important}
html:root:root:root[data-skin="novel"] body .nav.split>.navhome.on::before{opacity:1}
html:root:root:root[data-skin="novel"] body .nav.split>.navhome:hover{filter:brightness(1.08)}
/* the icons: pale lavender on the bar, no tiles; the open one turns gold */
html:root:root:root[data-skin="novel"] body .nav.split .navpill{flex:1;min-width:0;height:100%;display:flex;align-items:center;gap:0!important;padding:0!important;margin:0!important;background:none!important;border:0!important;box-shadow:none!important;border-radius:0!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
html:root:root:root[data-skin="novel"] body .nav.split .navpill button{flex:1 1 0;min-width:0;height:100%;display:flex;align-items:center;justify-content:center;gap:6px;padding:0 2px!important;background:none!important;border:0!important;box-shadow:none!important;border-radius:0!important;color:#d9cdea!important;transition:color .2s,filter .2s}
html:root:root:root[data-skin="novel"] body .nav.split .navpill button svg{width:22px;height:22px;filter:drop-shadow(0 0 1px rgba(255,255,255,.15))}
html:root:root:root[data-skin="novel"] body .nav.split .navpill button:hover{color:#f3ecff!important}
html:root:root:root[data-skin="novel"] body .nav.split .navpill button.on{color:#e2c58c!important;filter:drop-shadow(0 0 6px rgba(226,197,140,.55))}
html:root:root:root[data-skin="novel"] body .nav.split .navpill button.on::before{display:none!important}
html:root:root:root[data-skin="novel"] body .nav.split .navpill .nvl{font-style:italic;letter-spacing:.04em}
/* separators: one after Home, then between the tabs — muted at the ends, gold in the middle */
html:root:root:root[data-skin="novel"] body .nav.split .navpill::before{content:"";flex:none;width:14px;height:76%;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M7 0.7999999999999998 Q7.992 6.008 13.2 7 Q7.992 7.992 7 13.2 Q6.008 7.992 0.7999999999999998 7 Q6.008 6.008 7 0.7999999999999998Z' fill='%238f80a8' opacity='1'/%3E%3C/svg%3E") center/11px 11px no-repeat,linear-gradient(180deg,transparent,#8f80a888 22%,#8f80a888 78%,transparent) center/1px 100% no-repeat}
html:root:root:root[data-skin="novel"] body .nav.split .navdot{display:block!important;flex:none!important;width:14px!important;height:76%!important;margin:0!important;border-radius:0!important;opacity:1!important;align-self:center;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M7 0.7999999999999998 Q7.992 6.008 13.2 7 Q7.992 7.992 7 13.2 Q6.008 7.992 0.7999999999999998 7 Q6.008 6.008 7 0.7999999999999998Z' fill='%23e2c58c' opacity='1'/%3E%3C/svg%3E") center/11px 11px no-repeat,linear-gradient(180deg,transparent,#e2c58c99 22%,#e2c58c99 78%,transparent) center/1px 100% no-repeat!important}
html:root:root:root[data-skin="novel"] body .nav.split .navdot:last-of-type{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M7 0.7999999999999998 Q7.992 6.008 13.2 7 Q7.992 7.992 7 13.2 Q6.008 7.992 0.7999999999999998 7 Q6.008 6.008 7 0.7999999999999998Z' fill='%238f80a8' opacity='1'/%3E%3C/svg%3E") center/11px 11px no-repeat,linear-gradient(180deg,transparent,#8f80a888 22%,#8f80a888 78%,transparent) center/1px 100% no-repeat!important}
@media (max-width:480px){html:root:root:root[data-skin="novel"] body .nav.split{--nh:56px}html:root:root:root[data-skin="novel"] body .nav.split .navdot,html:root:root:root[data-skin="novel"] body .nav.split .navpill::before{width:10px!important}html:root:root:root[data-skin="novel"] body .nav.split .navpill button svg{width:20px;height:20px}}
/* Home without its circle: just the house, set in the bar's rounded end; it glows when Home is open */
html:root:root:root[data-skin="novel"] body .nav.split>.navhome,html:root:root:root[data-skin="novel"] body .nav.split>.navhome:not(.on),html:root:root:root[data-skin="novel"] body .nav.split>.navhome.on{border:0!important;background:none!important;box-shadow:none!important}
html:root:root:root[data-skin="novel"] body .nav.split>.navhome::before{display:none!important}
html:root:root:root[data-skin="novel"] body .nav.split>.navhome::after{inset:8%;opacity:.78;filter:saturate(.7) drop-shadow(0 1px 2px rgba(20,10,30,.5));transition:opacity .2s,filter .2s}
html:root:root:root[data-skin="novel"] body .nav.split>.navhome:hover::after{opacity:.95}
html:root:root:root[data-skin="novel"] body .nav.split>.navhome.on::after{opacity:1;filter:drop-shadow(0 0 5px rgba(226,197,140,.75)) drop-shadow(0 0 12px rgba(190,160,235,.45))}

/* place titles: the full card is shorter; return visits get a small caption at the top that covers nothing */
.vnscene{animation-duration:1.25s!important}
.vnscene.mini{inset:auto;top:calc(env(safe-area-inset-top,0px) + 14px);left:50%;transform:translateX(-50%);flex-direction:row;align-items:baseline;gap:10px;padding:7px 18px 8px;border-radius:999px;background:rgba(14,9,20,.82);border:1px solid rgba(214,186,120,.35);box-shadow:0 8px 24px -10px rgba(0,0,0,.7);-webkit-backdrop-filter:blur(6px) saturate(1);backdrop-filter:blur(6px) saturate(1);animation:vnscenemini 1.5s ease both!important}
.vnscene.mini i{display:none}
.vnscene.mini b{font-size:1.05rem!important;text-shadow:none}
.vnscene.mini span{font-size:.58rem!important;letter-spacing:.22em;text-shadow:none}
@keyframes vnscenemini{0%{opacity:0;transform:translate(-50%,-6px)}15%{opacity:1;transform:translate(-50%,0)}75%{opacity:1}100%{opacity:0}}
.vnscene.mini.tight span{display:none}
/* phones: the open tab takes a bigger share of the bar so its name shows in full; the others stay icon-sized */
@media (max-width:560px){
  html:root:root:root[data-skin="novel"] body .nav.split{padding-left:calc(var(--nh) * 1.02)!important;padding-right:calc(var(--nh) * .46)!important}
  html:root:root:root[data-skin="novel"] body .nav.split .navdot,html:root:root:root[data-skin="novel"] body .nav.split .navpill::before{width:9px!important}
  html:root:root:root[data-skin="novel"] body .nav.split .navpill button{flex:1 1 0;gap:4px;padding:0 1px!important}
  html:root:root:root[data-skin="novel"] body .nav.split .navpill button.on{flex:3.2 1 0}
  html:root:root:root[data-skin="novel"] body .nav.split .navpill button .nvl{max-width:none!important;overflow:visible!important;text-overflow:clip!important;white-space:nowrap;font-size:.8rem!important;letter-spacing:.01em}
}

/* ---------- the nav, slimmer and calmer: one fine edge, small tip stars, plain diamond separators ---------- */
html:root:root:root[data-skin="novel"] body .nav.split{--nh:48px}
html:root:root:root[data-skin="novel"] body .nav.split::before{border-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='100' viewBox='0 0 600 100'%3E%3Cdefs%3E%3ClinearGradient id='f' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23140f1d'/%3E%3Cstop offset='1' stop-color='%230c0913'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M564 4 C576 4 584 28 594 50 C584 72 576 96 564 96 H72 C40 96 12 76 10 50 C12 24 40 4 72 4 Z' fill='url(%23f)' fill-opacity='.9' stroke='%23d2ae94' stroke-opacity='.55' stroke-width='1.2'/%3E%3Cpath d='M4 46 Q4.64 49.36 8 50 Q4.64 50.64 4 54 Q3.36 50.64 0 50 Q3.36 49.36 4 46Z' fill='%23e2c58c' opacity='0.7'/%3E%3Cpath d='M597 46 Q597.64 49.36 601 50 Q597.64 50.64 597 54 Q596.36 50.64 593 50 Q596.36 49.36 597 46Z' fill='%23e2c58c' opacity='0.7'/%3E%3C/svg%3E") 0 100 0 110 fill / 0 var(--nh) 0 calc(var(--nh) * 1.1) stretch}
html:root:root:root[data-skin="novel"] body .nav.split .navpill::before,html:root:root:root[data-skin="novel"] body .nav.split .navdot,html:root:root:root[data-skin="novel"] body .nav.split .navdot:last-of-type{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cpath d='M4 .8 7.2 4 4 7.2 .8 4z' fill='%23e2c58c'/%3E%3C/svg%3E") center/5px 5px no-repeat!important;opacity:.45!important;width:12px!important;height:12px!important}
html:root:root:root[data-skin="novel"] body .nav.split .navpill button svg{width:19px;height:19px}
html:root:root:root[data-skin="novel"] body .nav.split>.navhome::after{inset:12%}
@media (max-width:560px){html:root:root:root[data-skin="novel"] body .nav.split{--nh:44px}html:root:root:root[data-skin="novel"] body .nav.split .navpill::before,html:root:root:root[data-skin="novel"] body .nav.split .navdot{width:8px!important}}

/* ---------- Home on its own again: a round button beside the bar ---------- */
html:root:root:root[data-skin="novel"] body .nav.split{padding:0!important;gap:8px!important}
html:root:root:root[data-skin="novel"] body .nav.split::before{display:none!important}
html:root:root:root[data-skin="novel"] body .nav.split>.navhome{position:relative!important;left:auto!important;top:auto!important;flex:none!important;width:var(--nh)!important;height:var(--nh)!important;border-radius:50%!important;border:1.2px solid rgba(210,174,148,.55)!important;background:linear-gradient(180deg,#140f1d,#0c0913)!important;box-shadow:none!important;color:#d9cdea!important;display:flex!important;align-items:center;justify-content:center}
html:root:root:root[data-skin="novel"] body .nav.split>.navhome::after{display:none!important}
html:root:root:root[data-skin="novel"] body .nav.split>.navhome .hm-n{display:block!important;width:20px;height:20px}
html:root:root:root[data-skin="novel"] body .nav.split>.navhome:hover{color:#f3ecff!important;border-color:rgba(226,197,140,.8)!important}
html:root:root:root[data-skin="novel"] body .nav.split>.navhome.on{background:linear-gradient(180deg,#efd9a4,#cba862)!important;border-color:#f3dca6!important;color:#1d1424!important;box-shadow:0 0 14px rgba(226,197,140,.45)!important}
/* the bar now wraps just the tabs */
html:root:root:root[data-skin="novel"] body .nav.split .navpill{position:relative;isolation:isolate;padding:0 calc(var(--nh) * .55) 0 calc(var(--nh) * .35)!important}
html:root:root:root[data-skin="novel"] body .nav.split .navpill::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;border-style:solid;border-color:transparent;border-width:0 var(--nh) 0 calc(var(--nh) * .5);border-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='100' viewBox='0 0 600 100'%3E%3Cdefs%3E%3ClinearGradient id='f' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23140f1d'/%3E%3Cstop offset='1' stop-color='%230c0913'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M564 4 C576 4 584 28 594 50 C584 72 576 96 564 96 H48 C22 96 3 76 3 50 C3 24 22 4 48 4 Z' fill='url(%23f)' fill-opacity='.9' stroke='%23d2ae94' stroke-opacity='.55' stroke-width='1.2'/%3E%3Cpath d='M597 46 Q597.64 49.36 601 50 Q597.64 50.64 597 54 Q596.36 50.64 593 50 Q596.36 49.36 597 46Z' fill='%23e2c58c' opacity='0.7'/%3E%3C/svg%3E") 0 100 0 50 fill / 0 var(--nh) 0 calc(var(--nh) * .5) stretch}
html:root:root:root[data-skin="novel"] body .nav.split .navpill::before{display:none!important}
@media (max-width:560px){html:root:root:root[data-skin="novel"] body .nav.split{gap:6px!important;padding:0!important}html:root:root:root[data-skin="novel"] body .nav.split .navpill{padding:0 calc(var(--nh) * .5) 0 calc(var(--nh) * .25)!important}}
html:root:root:root[data-skin="novel"] body .nav.split>.navhome:not(.on){border:1.2px solid rgba(210,174,148,.55)!important;background:linear-gradient(180deg,#140f1d,#0c0913)!important;box-shadow:none!important}
html:root:root:root[data-skin="novel"] body .nav.split>.navhome:not(.on):hover{border-color:rgba(226,197,140,.8)!important}
/* Home moved up into the header, beside your picture (index.html renderNav); the bar below holds only the tabs, centred */
html:root:root[data-skin="novel"] body h1 .hdhome{left:62px;width:36px;height:36px;padding:0!important;display:flex;align-items:center;justify-content:center;border-radius:50%!important;border:1px solid rgba(210,174,148,.55)!important;background:linear-gradient(180deg,#140f1d,#0c0913)!important;box-shadow:none!important;color:#d9cdea!important;transition:color .2s,border-color .2s,box-shadow .2s}
html:root:root[data-skin="novel"] body h1 .hdhome::before{display:none!important}
html:root:root[data-skin="novel"] body h1 .hdhome .hm-n{display:block!important;width:18px;height:18px}
html:root:root[data-skin="novel"] body h1 .hdhome .hm-p{display:none!important}
html:root:root[data-skin="novel"] body h1 .hdhome:hover{color:#f3ecff!important;border-color:rgba(226,197,140,.85)!important}
html:root:root[data-skin="novel"] body h1 .hdhome.on{background:linear-gradient(180deg,#efd9a4,#cba862)!important;border-color:#f3dca6!important;color:#1d1424!important;box-shadow:0 0 12px rgba(226,197,140,.45)!important}
html:root:root:root[data-skin="novel"] body .nav.split{justify-content:center!important}
html:root:root:root[data-skin="novel"] body .nav.split .navpill{flex:1 1 auto;max-width:100%}
@media (max-width:480px){html:root:root[data-skin="novel"] body h1 .hdhome{left:50px;width:32px;height:32px}html:root:root[data-skin="novel"] body h1 .hdhome .hm-n{width:16px;height:16px}}

/* Auto, clearly on: filled gold with a small pulsing dot */
.vnpctl button[data-a="auto"]{position:relative}
.vnpctl button[data-a="auto"].on{background:linear-gradient(180deg,#efd9a4,#cba862);color:#1d1424;border-color:#f3dca6;padding-left:22px}
.vnpctl button[data-a="auto"].on::before{content:"";position:absolute;left:9px;top:50%;width:6px;height:6px;margin-top:-3px;border-radius:50%;background:#1d1424;animation:vnautopulse 1.2s ease-in-out infinite}
@keyframes vnautopulse{0%,100%{opacity:.35}50%{opacity:1}}
@media (prefers-reduced-motion:reduce){.vnpctl button[data-a="auto"].on::before{animation:none}}

/* the tab bar's two ends match: each curves to a point with a small star */
html:root:root:root[data-skin="novel"] body .nav.split .navpill::after{border-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='100' viewBox='0 0 600 100'%3E%3Cdefs%3E%3ClinearGradient id='f' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23140f1d'/%3E%3Cstop offset='1' stop-color='%230c0913'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M564 4 C576 4 584 28 594 50 C584 72 576 96 564 96 H42 C30 96 22 72 12 50 C22 28 30 4 42 4 Z' fill='url(%23f)' fill-opacity='.9' stroke='%23d2ae94' stroke-opacity='.55' stroke-width='1.2'/%3E%3Cpath d='M5 46 Q5.64 49.36 9 50 Q5.64 50.64 5 54 Q4.36 50.64 1 50 Q4.36 49.36 5 46Z' fill='%23e2c58c' opacity='0.7'/%3E%3Cpath d='M597 46 Q597.64 49.36 601 50 Q597.64 50.64 597 54 Q596.36 50.64 593 50 Q596.36 49.36 597 46Z' fill='%23e2c58c' opacity='0.7'/%3E%3C/svg%3E") 0 100 0 50 fill / 0 var(--nh) 0 calc(var(--nh) * .5) stretch}
