/* Release 6.2 — no character redesign. */
body[data-character="shizuku"] .story-tabs [role="tab"] {border-color:#51465f;box-shadow:none;outline-color:#d3c7ff}
body[data-character="shizuku"] .story-tabs [role="tab"][aria-selected="true"]{background:#b3a5e3;color:#171321;border:1px solid #b3a5e3!important;border-bottom:3px solid #76639f!important;box-shadow:none!important}
body[data-character="shizuku"] .story-tabs [role="tab"]:hover{border-color:#b3a5e3}
body[data-character="shizuku"] .story-tabs [role="tab"]:focus-visible{outline:3px solid #d3c7ff!important;outline-offset:3px!important}
.site-preferences{position:fixed;inset:auto 0 0;margin:0;width:100%;max-width:none;max-height:85dvh;overflow:auto;box-sizing:border-box;border:0;border-top:2px solid #c77d9e;background:#211c27;color:#f5f2ef;padding:24px max(4vw,calc((100vw - 1600px)/2));z-index:500;box-shadow:0 -8px 32px #0008}
.site-preferences:not([open]){display:none}.site-preferences[open]{display:flex;align-items:center;justify-content:space-between;gap:24px}.site-preferences::backdrop{background:#09070c55}.preference-copy{max-width:90ch}.preference-copy h2{font:700 21px/1.3 var(--body);margin:0 0 8px}.preference-copy p{font:15px/1.6 var(--body);margin:0}.preference-copy a{color:#efb2cb;text-decoration:underline;text-underline-offset:3px}
.preference-actions{display:flex;flex-wrap:wrap;gap:12px;flex-shrink:0;margin:0}.preference-actions button{min-height:44px;background:#624c65;border:1px solid #c8b7cc;color:#fff;padding:11px 20px;font:700 14px/1.3 var(--body);cursor:pointer}.preference-actions button:hover{background:#806487}
.privacy-preferences-inline{padding:24px;border:1px solid #776475;background:#211c27;scroll-margin-top:100px}.privacy-preferences-inline .preference-actions{margin-top:20px}
.creation-section{padding-block:clamp(36px,4vw,68px)!important;border-top:1px solid var(--line);margin-top:24px}.creation-heading{max-width:76ch}.creation-heading h2{font:italic 750 clamp(32px,3.8vw,60px)/1.12 var(--display);text-transform:uppercase;margin:14px 0 16px}.creation-heading p{color:#e0dbe4;line-height:1.75}.creation-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin:26px 0}.creation-card{position:relative;overflow:hidden;padding:24px 20px;min-height:176px;background:linear-gradient(145deg,#28202b,#19171f 78%);border:1px solid #554b5a;border-top:3px solid var(--red);margin:0!important}.creation-card:nth-child(even){transform:translateY(8px)}.creation-number{position:absolute;right:12px;top:8px;font:italic 700 60px/1 var(--display);color:#403442;pointer-events:none}.creation-cat{position:relative;font-size:26px}.creation-card h3{position:relative;font:700 20px/1.3 var(--body);margin:12px 0 8px;color:var(--hot)}.creation-card p{position:relative;color:#eee8f0;line-height:1.6;margin:0;overflow-wrap:anywhere}.creation-card a{color:var(--hot);text-decoration:underline;text-underline-offset:3px}.creation-invite{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:30px}.creation-invite small{color:#c0bac5}.creation-invite .footer-button{min-height:44px;background:#624c65;border-color:#c8b7cc;color:white}
.legal-copy .legal-identity-grid>article{margin:0;padding:24px;background:#1a191f;border:1px solid #554b5a;border-top:3px solid var(--red)}.legal-copy .legal-identity-grid h2{font:700 22px/1.3 var(--body);color:var(--hot)}.legal-copy .legal-identity-grid p{margin:10px 0;line-height:1.8}
html[lang=ja] .creation-heading h2{font-style:normal;text-transform:none;line-height:1.25}
@media(max-width:1050px){.site-preferences[open]{flex-direction:column;align-items:flex-start}.creation-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.site-preferences{padding:18px;max-height:80dvh}.preference-actions{width:100%;gap:8px}.preference-actions button{flex:1;min-width:0;padding:10px 8px}.creation-grid{grid-template-columns:1fr}.creation-card:nth-child(even){transform:none}.creation-card{min-height:0}.creation-invite{align-items:flex-start;flex-direction:column}}

/* Compact, server-rendered breadcrumb. No JS, images, fonts or external requests. */
.site-breadcrumb{flex:0 0 auto;background:var(--bg,#101014);border-bottom:1px solid #ffffff20;color:#e2dce5;padding:9px max(4vw,calc((100vw - 2060px)/2));font-size:.875rem;line-height:1.55}
.site-breadcrumb ol{list-style:none;padding:0;margin:0;display:flex;flex-wrap:wrap;align-items:center;gap:4px 0}
.site-breadcrumb li{display:flex;align-items:baseline;min-width:0;overflow-wrap:anywhere}
.site-breadcrumb li+li::before{content:"";display:inline-block;width:6px;height:6px;border-right:1px solid #bcb3c1;border-top:1px solid #bcb3c1;transform:rotate(45deg);margin:0 13px 0 11px;flex-shrink:0;align-self:center}
.site-breadcrumb a{color:inherit;text-decoration:underline;text-underline-offset:.2em;min-height:24px;display:inline-flex;align-items:center}
.site-breadcrumb a:hover{color:#fff}
.site-breadcrumb a:focus-visible{outline:2px solid #f5e1af;outline-offset:3px}
.site-breadcrumb [aria-current=page]{color:#fff;font-weight:600}
@media(max-width:760px){.site-breadcrumb{padding:7px 16px;font-size:.8125rem}.site-breadcrumb li+li::before{margin:0 9px}}

/* V6.4 — native themed 404, no new assets or runtime dependency. */
.error-page{flex:1;display:grid;align-items:center;min-height: min(660px,70vh)}
.error-stage{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);align-items:center;gap:clamp(24px,5vw,90px);width:100%;padding-block:clamp(36px,6vw,95px)}
.error-art{position:relative;min-width:0;isolation:isolate;border:1px solid #695565;overflow:hidden;background:#211b26;box-shadow:10px 10px 0 #c77d9e25;transform:rotate(-1deg)}
.error-art img{width:100%;aspect-ratio:16/10;display:block;object-fit:cover;object-position:70% 50%}
.error-art:after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,#101014e8,transparent 65%);pointer-events:none}
.error-art>span{position:absolute;z-index:1;bottom:0;left:5%;font-size:clamp(64px,12vw,180px);font-style:italic;font-weight:800;line-height:1;color:#fff;letter-spacing:-.05em}
.error-art>span>span{color:#efb2cb}
.error-copy{min-width:0}.error-copy h1{font-size:clamp(2rem,4.2vw,5rem);line-height:1.04;margin:16px 0;overflow-wrap:anywhere}.error-copy h2{font-size:clamp(1.3rem,2.4vw,2.4rem);margin:0 0 16px}.error-copy p{max-width:62ch;line-height:1.7}.error-actions{display:flex;flex-wrap:wrap;align-items:center;gap:14px;margin-top:28px}.error-actions a{min-height:44px;display:inline-flex;align-items:center;gap:10px}.error-actions a:focus-visible{outline:2px solid #f5e1af;outline-offset:3px}
@media(max-width:760px){.error-stage{grid-template-columns:1fr}.error-art{transform:none}.error-copy h1{font-size:clamp(2rem,9vw,3.8rem)}}

/* V6.5 — centred, equal-access privacy choices. Native dialog provides inert background. */
.site-preferences{inset:0;margin:auto;width:min(620px,calc(100% - 32px));height:max-content;max-width:620px;max-height:calc(100dvh - 32px);padding:clamp(22px,4vw,36px);border:1px solid #9a839b;border-top:3px solid #c77d9e;background:linear-gradient(145deg,#29212e,#19171f 76%);box-shadow:0 20px 70px #000b;overflow:auto;overscroll-behavior:contain}
.site-preferences[open]{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:24px}
.site-preferences::backdrop{background:rgba(9,7,12,.78)}
html:has(.site-preferences:modal){overflow:hidden}
.site-preferences .preference-copy h2{font-size:clamp(21px,4vw,28px);margin:0 0 12px}
.site-preferences .preference-copy h2:focus{outline:none!important;box-shadow:none!important}
.site-preferences .preference-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;width:100%}
.site-preferences .preference-actions button{width:100%;min-height:48px;padding:12px 10px;border:2px solid #efb2cb;border-radius:2px;font:700 15px/1.35 var(--body);text-align:center;overflow-wrap:anywhere;white-space:normal}
.site-preferences .preference-actions button[value=reject]{background:#19171f;color:#f5f2ef}
.site-preferences .preference-actions button[value=accept]{background:#c77d9e;color:#17121b}
.site-preferences .preference-actions button[value=reject]:hover{background:#332837}
.site-preferences .preference-actions button[value=accept]:hover{background:#e2a5c1}
.site-preferences .preference-actions button:focus-visible,.site-preferences a:focus-visible{outline:2px solid #f5e1af;outline-offset:3px}
@media(max-width:350px){.site-preferences .preference-actions{grid-template-columns:1fr}}

/* RSS subscriptions: compact row, no extra dependency. */
.footer-rss{display:flex;flex-wrap:wrap;align-items:center;gap:.8rem 1.5rem;margin:0 auto 1.2rem;width:min(92%,1800px);font-size:.875rem;line-height:1.6}
.footer-rss nav{display:flex;flex-wrap:wrap;gap:.4rem 1.2rem}
.footer-rss a{color:inherit;text-decoration:underline;text-underline-offset:.2em}
.footer-rss a:focus-visible{outline:2px solid currentColor;outline-offset:3px}
