/* V30 – sticky chapter heading, tactile highlights, photo lightbox and scroll-drawn light.
   Does not alter the original artwork, registration source, or the pricing logic. */
:root{--v30-header-height:76px;--v30-dock-height:39px}
.v30-dock{position:fixed;left:0;right:0;top:var(--v30-header-height);z-index:48;color:#fff;visibility:hidden;opacity:0;transform:translateY(-12px);pointer-events:none;transition:opacity .3s ease,transform .3s ease,visibility .3s ease;background:linear-gradient(95deg,rgba(24,52,112,.89),rgba(73,67,128,.86),rgba(55,73,133,.90));-webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px);border-bottom:1px solid rgba(255,220,177,.37);box-shadow:0 9px 21px rgba(22,36,77,.1)}
.v30-dock.is-active{visibility:visible;opacity:1;transform:translateY(0);pointer-events:auto}
.v30-dock-inner{height:var(--v30-dock-height);width:min(1110px,100%);margin:auto;padding:0 22px;display:flex;align-items:center;justify-content:space-between;gap:14px}
.v30-chapter-toggle,.v30-next{border:none;background:transparent;color:#fff;display:flex;align-items:center;cursor:pointer;font-family:Arial,'Noto Sans SC','Microsoft YaHei',sans-serif}
.v30-chapter-toggle{gap:13px;min-width:0;padding:5px 0;font-size:13px;letter-spacing:.06em}
.v30-chapter-count{font:italic 12px Georgia,serif;color:#ffd1a3;white-space:nowrap}
.v30-chapter-title{font-weight:700;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.v30-chevron{color:#ffdfb8;font-size:19px;transition:transform .26s}
.v30-dock.is-open .v30-chevron{transform:rotate(180deg)}
.v30-next{font-size:11px;letter-spacing:.1em;gap:8px;white-space:nowrap;padding:7px 0;opacity:.88;transition:opacity .2s}
.v30-next:hover{opacity:1}.v30-next span{font-size:17px;color:#ffce9f}
.v30-chapter-list{position:absolute;left:0;right:0;top:100%;display:grid;grid-template-columns:repeat(5,1fr);gap:8px;max-width:900px;margin:0 auto;padding:15px;background:linear-gradient(135deg,rgba(27,50,104,.98),rgba(70,61,121,.98));border:1px solid #ffffff24;border-top:0;border-radius:0 0 17px 17px;box-shadow:0 14px 29px #121c3852;opacity:0;transform:translateY(-7px);visibility:hidden;pointer-events:none;transition:opacity .2s,transform .2s,visibility .2s}
.v30-dock.is-open .v30-chapter-list{visibility:visible;opacity:1;transform:none;pointer-events:auto}
.v30-chapter-list a{font:italic 12px Georgia,serif;color:#f8d4ad;display:flex;align-items:center;gap:10px;padding:9px 10px;border:1px solid transparent;border-radius:8px;transition:background .2s,border-color .2s;text-decoration:none;white-space:nowrap}
.v30-chapter-list a span{font:600 12px Arial,'Noto Sans SC',sans-serif;color:#fff}
.v30-chapter-list a[aria-current="location"],.v30-chapter-list a:hover{background:#ffffff19;border-color:#ffffff3b}
.v30-chapter-toggle:focus-visible,.v30-next:focus-visible,.v30-chapter-list a:focus-visible{outline:2px solid #ffd6a6;outline-offset:3px;border-radius:7px}
.v29-section[id]{scroll-margin-top:calc(var(--v30-header-height) + var(--v30-dock-height) + 16px)!important}
.v30-ambient{position:absolute;z-index:0;pointer-events:none;width:45vw;height:43vw;border-radius:50%;opacity:.45;filter:blur(52px);animation:v30Ambient 17s ease-in-out infinite alternate;will-change:transform}
.v30-ambient-one{top:15%;right:-20%;background:radial-gradient(circle,#f7acb674,transparent 67%)}
.v30-ambient-two{top:51%;left:-23%;background:radial-gradient(circle,#ffc3856a,transparent 67%);animation-delay:-7s}
@keyframes v30Ambient{from{transform:translate3d(-12px,-11px,0) scale(.91)}to{transform:translate3d(18px,17px,0) scale(1.09)}}
.v29-thread{opacity:.95;filter:drop-shadow(0 0 6px #ffc9888f)}
.v30-motion .v29-thread path{transition:stroke-dashoffset .12s linear}
.v29-section-heading:after{content:"";display:block;width:0;height:1.5px;margin:16px auto 0;background:linear-gradient(90deg,transparent,#e5a78b 25%,#ffdc9f 60%,transparent);box-shadow:0 0 9px #ffc68480;transition:width 1s cubic-bezier(.15,.75,.2,1)}
.v29-section-heading.is-visible:after{width:min(180px,42%)}
.v29-theme-brand .v29-brush-trail{transform-origin:left center;transition:opacity 1s ease,transform 1.2s cubic-bezier(.1,.7,.2,1)}
.motion-ready .v29-theme-brand:not(.is-visible) .v29-brush-trail{opacity:0;transform:scaleX(.45) rotate(-3deg)}
.glow-button{position:relative;overflow:hidden;isolation:isolate}
.glow-button:after{content:"";position:absolute;inset:-60% auto -60% -80%;width:45%;transform:rotate(24deg) translateX(-40%);background:linear-gradient(90deg,transparent,#ffffff80,transparent);animation:v30ButtonSheen 7s ease-in-out infinite;pointer-events:none}
@keyframes v30ButtonSheen{0%,67%{left:-75%;opacity:0}71%{opacity:.64}90%,100%{left:145%;opacity:0}}
/* Highlights are open typography, not cards. All four are interactive controls. */
.v30-highlight-trigger{display:flex;align-items:center;flex-direction:column;width:100%;padding:0 2px 9px;margin:0;color:inherit;background:transparent;border:0;border-bottom:2px solid transparent;border-radius:3px 3px 12px 12px;font:inherit;text-align:center;cursor:pointer;transition:transform .26s ease,border-color .26s ease,background .26s ease}
.v30-highlight-trigger:hover,.v30-highlight-trigger:focus-visible{transform:translateY(-5px)}
.v30-highlight-trigger:focus-visible{outline:2px solid #b86da1;outline-offset:5px}
.v30-highlight-trigger[aria-expanded="true"]{border-color:#efa87c;background:linear-gradient(180deg,transparent 30%,#fff5f15c)}
.v30-highlight-trigger .v29-icon{transition:transform .4s cubic-bezier(.15,.75,.3,1),filter .4s}
.v30-highlight-trigger:hover .v29-icon,.v30-highlight-trigger[aria-expanded="true"] .v29-icon{transform:scale(1.10) rotate(-4deg);filter:drop-shadow(0 0 14px #ffb47eb0)}
.v30-highlight-hint{font-size:16px;color:#a6729a;font-weight:400;line-height:1;margin-top:8px;transition:transform .28s,color .28s}
.v30-highlight-trigger[aria-expanded="true"] .v30-highlight-hint{transform:rotate(45deg);color:#c87694}
.v30-highlight-detail{max-width:690px;margin:0 auto;max-height:0;opacity:0;overflow:hidden;transition:max-height .44s cubic-bezier(.2,.7,.2,1),opacity .3s,margin-top .34s}
.v30-highlight-detail[data-open="true"]{max-height:175px;opacity:1;margin-top:30px}
.v30-highlight-detail-inner{text-align:center;position:relative;padding:17px 18px 20px;border-top:1px solid #c98caf80;border-bottom:1px solid #c98caf60;background:radial-gradient(ellipse at 50% 45%,#ffffff7a,transparent 85%);color:#2b467c}
.v30-highlight-detail-star{display:inline-block;font-size:24px;color:#d69a76;margin-right:8px;vertical-align:-4px}
.v30-highlight-detail strong{font-size:16px;letter-spacing:.05em;color:#183d79}
.v30-highlight-detail p{font-size:13.8px;line-height:1.7;margin:7px auto 0;max-width:520px;color:#435777}
/* Image-only zoom interaction, without replacing or regenerating real photos. */
.v30-photo-open{display:block;position:relative;width:100%;height:100%;border:0;background:transparent;padding:0;cursor:zoom-in;overflow:hidden;border-radius:inherit}
.v30-photo-open:focus-visible{outline:3px solid #ffd1ac;outline-offset:-5px}
.v29-photo .v30-photo-open img{transform:translate3d(0,var(--v30-photo-shift,0px),0) scale(1.075);transition:transform .28s ease-out,filter .3s ease;will-change:transform}
.v29-photo:hover .v30-photo-open img{filter:saturate(1.07) brightness(1.03);transform:translate3d(0,var(--v30-photo-shift,0px),0) scale(1.11)}
.v30-zoom-icon{position:absolute;right:14px;bottom:14px;display:grid;place-items:center;width:38px;height:38px;border:1px solid #fff9;border-radius:100%;background:#152d63a6;color:#fff;font-size:22px;font-family:Arial,sans-serif;box-shadow:0 2px 12px #13274b5c;transition:transform .2s,background .2s;pointer-events:none}
.v30-photo-open:hover .v30-zoom-icon{transform:translateY(-2px) rotate(8deg);background:#152d63d9}
.v30-lightbox{border:1px solid #ffffff63;border-radius:19px;padding:22px;box-shadow:0 28px 80px #0008;background:linear-gradient(135deg,#162e5c,#333c79);color:#fff;max-width:min(90vw,950px);max-height:87dvh;overflow:auto;text-align:center}
.v30-lightbox::backdrop{background:rgba(13,21,41,.82);-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px)}
.v30-lightbox img{display:block;margin:auto;width:auto;max-width:100%;max-height:calc(87dvh - 105px);object-fit:contain;border-radius:11px}
.v30-lightbox p{margin:12px 0 0;font-size:14px;color:#fff8;letter-spacing:.04em}
.v30-lightbox-close{position:sticky;top:0;float:right;margin:-6px -4px 5px 8px;width:36px;height:36px;border-radius:50%;border:1px solid #fff8;background:#10254fcf;color:#fff;font-size:26px;cursor:pointer;z-index:1;line-height:1}
.v30-lightbox-close:focus-visible{outline:2px solid #ffd9ad}
@media(max-width:780px){:root{--v30-header-height:64px;--v30-dock-height:37px}
 .v30-dock-inner{padding:0 17px}.v30-chapter-toggle{font-size:12px;gap:10px}.v30-chapter-count{font-size:11px}.v30-next{font-size:10px;gap:5px}
 .v30-chapter-list{grid-template-columns:1fr;padding:10px 18px;gap:1px;margin:0 12px;max-height:60dvh;overflow:auto}
 .v30-chapter-list a{padding:12px 9px;font-size:12px}.v30-chapter-list a span{font-size:13px}
 .v30-ambient{width:95vw;height:75vw;opacity:.28;filter:blur(40px)}
 .v30-highlight-detail[data-open="true"]{margin-top:20px;max-height:195px}
 .v30-highlight-detail-inner{padding:14px 10px 16px}.v30-highlight-detail p{font-size:12px}
 .v30-highlight-hint{font-size:15px;margin-top:5px}
 .v30-zoom-icon{width:30px;height:30px;font-size:18px;right:9px;bottom:9px}
 .v30-lightbox{max-width:95vw;width:95vw;max-height:84dvh;padding:12px;border-radius:13px}
 .v30-lightbox img{max-height:calc(84dvh - 87px)}
}
@media(prefers-reduced-motion:reduce){.v30-ambient,.glow-button:after{animation:none!important}.v30-dock,.v30-chapter-list,.v30-highlight-trigger,.v30-highlight-detail,.v30-zoom-icon,.v30-photo-open img,.v29-section-heading:after{transition:none!important}.v29-photo .v30-photo-open img{transform:none!important}.v29-section-heading:after{width:90px!important}}
/* Cascading text: phrases arrive in sequence, not all at once; replay when scrolling back. */
@media(prefers-reduced-motion:no-preference){
 .motion-ready .v29-theme-prose .v29-micro,
 .motion-ready .v29-theme-prose p,
 .motion-ready .v29-theme-prose .v29-theme-sign{opacity:0;transform:translateY(11px);transition:opacity .65s ease,transform .8s cubic-bezier(.18,.66,.18,1)}
 .motion-ready .v29-theme-prose.is-visible .v29-micro,
 .motion-ready .v29-theme-prose.is-visible p,
 .motion-ready .v29-theme-prose.is-visible .v29-theme-sign{opacity:1;transform:none}
 .motion-ready .v29-theme-prose.is-visible .v29-micro{transition-delay:.16s}
 .motion-ready .v29-theme-prose.is-visible p:nth-of-type(1){transition-delay:.30s}
 .motion-ready .v29-theme-prose.is-visible p:nth-of-type(2){transition-delay:.48s}
 .motion-ready .v29-theme-prose.is-visible .v29-theme-sign{transition-delay:.63s}
 .motion-ready .v29-split .v29-story-copy h3,
 .motion-ready .v29-split .v29-story-copy .v29-roman,
 .motion-ready .v29-split .v29-story-copy .v29-story-note{opacity:0;transform:translateY(13px);transition:opacity .65s ease,transform .75s cubic-bezier(.18,.66,.18,1)}
 .motion-ready .v29-split.is-visible .v29-story-copy h3,
 .motion-ready .v29-split.is-visible .v29-story-copy .v29-roman,
 .motion-ready .v29-split.is-visible .v29-story-copy .v29-story-note{opacity:1;transform:none}
 .motion-ready .v29-split.is-visible .v29-story-copy h3{transition-delay:.15s}
 .motion-ready .v29-split.is-visible .v29-story-copy .v29-roman{transition-delay:.29s}
 .motion-ready .v29-split.is-visible .v29-story-copy .v29-story-note{transition-delay:.44s}
}
