/* Scoped content choreography. Brand, brand-sub, nav and controls are unbound. */
/* A broad blurred text duplicate becomes a rectangular glow when the reveal
   mask clips its filter bounds. Keep the chrome lettering and icon glow only. */
.app[data-story] #title .logo-glow{display:none}
.app[data-story] .dock{opacity:1;transform:none;pointer-events:auto;transition:none}
.app[data-story] #title .logo-layer,.app[data-story] #title .logo-layer span,
.app[data-story] #title .category-icon--hero,.app[data-story] #title .category-icon-outline,
.app[data-story] #title .category-icon-fill,.app[data-story] #title .category-icon-detail,
.app[data-story] #title .tag-cn em,.app[data-story] #title .tag-cn .slashes,
.app[data-story] #title .tag-en,.app[data-story] #title .rail,.app[data-story] #title .spark,
.app[data-story] .mini-bar,.app[data-story] .mini-bar i,.app[data-story] .corner{transition:none!important}
.app[data-story] #title .logo-sweep,.app[data-story] #title .spark,
.app[data-story] .term .caret::after,.app[data-story] .term .cursor{animation:none!important}
.app[data-story] [data-story-effect="wipe"]{
 -webkit-mask-image:linear-gradient(var(--story-wipe-direction,to left),#000 calc(var(--story-reveal)*112% - 12%),transparent calc(var(--story-reveal)*112%));
 mask-image:linear-gradient(var(--story-wipe-direction,to left),#000 calc(var(--story-reveal)*112% - 12%),transparent calc(var(--story-reveal)*112%));
}
.story-debug{position:fixed;right:16px;bottom:90px;z-index:45;width:min(350px,calc(100vw - 32px));box-sizing:border-box;padding:12px;border:1px solid #9ac1ff66;border-radius:8px;background:#060d1aef;color:#dbe9ff;font:12px/1.6 ui-monospace,monospace;box-shadow:0 6px 25px #0006}
.story-debug[hidden]{display:none}
.story-debug header{display:flex;justify-content:space-between;gap:12px}
.story-debug input{display:block;width:100%;margin:10px 0;accent-color:#aacdff}
.story-debug .story-debug-buttons{display:flex;gap:7px;flex-wrap:wrap}
.story-debug button{background:#14243b;color:inherit;border:1px solid #7f9ec755;border-radius:4px;padding:5px 8px;font:inherit;cursor:pointer}
.story-debug .story-debug-cues{margin-top:8px;font-size:10px;opacity:.8}
.story-debug [data-story-debug-status]{font-size:11px;opacity:.85}

/* Claude: exposed pen and warm ink, no plaque or glow rectangle. */
.app[data-story="claude-fable-pen-v1"] .title{top:35.5%}
.app[data-story="claude-fable-pen-v1"] .title-heading{gap:calc(var(--u)*.6)}
.app[data-story="claude-fable-pen-v1"] .title-heading .logo{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.pen-title{display:block;width:calc(var(--u)*30);height:calc(var(--u)*9.49);position:relative;pointer-events:none}
.pen-title-art{display:block;width:100%;height:100%;overflow:visible}
.ink-lettering,.ink-flourish{filter:drop-shadow(0 1px 1px #3a211dcc)}
.writing-pen{pointer-events:none;filter:drop-shadow(1px 2px 1.2px #2a190955)}
.app[data-story="claude-fable-pen-v1"] .category-icon--hero{width:calc(var(--u)*3.8);height:calc(var(--u)*3.8);align-self:center;opacity:var(--pen-emblem,0);filter:none}
.app[data-story="claude-fable-pen-v1"] #title .orbit,.app[data-story="claude-fable-pen-v1"] #title .spark{display:none}
.app[data-story="claude-fable-pen-v1"] .tag-cn{left:12%;top:calc(100% + var(--u)*.4)}
.app[data-story="claude-fable-pen-v1"] .tag-en{left:12%;top:calc(100% + var(--u)*3.3);letter-spacing:.32em}
@media (max-width:760px),(max-aspect-ratio:1/1){
 .app[data-story="claude-fable-pen-v1"] .title{top:auto}
 .pen-title{width:min(69vw,360px);height:min(21.83vw,114px)}
 .app[data-story="claude-fable-pen-v1"] .category-icon--hero{width:30px;height:30px}
 .app[data-story="claude-fable-pen-v1"] .tag-cn{left:0;top:calc(100% + 8px)}
 .app[data-story="claude-fable-pen-v1"] .tag-en{left:0;top:calc(100% + 36px);font-size:7px;letter-spacing:.23em}
}
/* Homepage contact tab: the same fine-line, translucent visual language as the HUD. */
body:has(#app) .ht-support[data-layout="home"]{
 --home-support-rgb:214 226 249;
 --ht-support-accent:rgb(var(--home-support-rgb));
 --ht-support-line:rgb(var(--home-support-rgb) / .25);
}
body:has(#app[data-char="claude"]) .ht-support[data-layout="home"]{--home-support-rgb:255 224 175}
body:has(#app[data-char="chatgpt"]) .ht-support[data-layout="home"]{--home-support-rgb:190 224 255}
body:has(#app[data-char="deepseek"]) .ht-support[data-layout="home"]{--home-support-rgb:192 216 255}
body:has(#app[data-char="grok"]) .ht-support[data-layout="home"]{--home-support-rgb:237 222 255}
body:has(#app) .ht-support[data-layout="home"] .ht-support-launcher{
 right:18px;width:42px;padding:16px 0 13px;gap:12px;
 border:1px solid rgb(var(--home-support-rgb) / .36);border-radius:2px;
 background:linear-gradient(155deg,rgb(var(--home-support-rgb) / .07),rgb(7 12 22 / .26));
 color:rgb(var(--home-support-rgb) / .92);
 box-shadow:0 3px 16px #00000014,inset 0 0 0 3px #ffffff03;
 backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px);
 text-shadow:0 1px 4px #0009;
 transition:color .2s,border-color .2s,background .2s,box-shadow .2s;
}
body:has(#app) .ht-support[data-layout="home"] .ht-support-launcher::before{
 content:"";position:absolute;top:-4px;left:calc(50% - 3px);width:6px;height:6px;
 transform:rotate(45deg);background:rgb(var(--home-support-rgb) / .9);
 box-shadow:0 0 8px rgb(var(--home-support-rgb) / .15);pointer-events:none;
}
body:has(#app) .ht-support[data-layout="home"] .ht-support-launcher::after{
 content:"";position:absolute;left:8px;right:8px;bottom:4px;height:1px;
 background:linear-gradient(90deg,transparent,rgb(var(--home-support-rgb) / .5),transparent);pointer-events:none;
}
body:has(#app) .ht-support[data-layout="home"] .ht-support-launcher > span{
 font-family:var(--f-cn,sans-serif);font-size:11px;font-weight:400;letter-spacing:4px;
}
body:has(#app) .ht-support[data-layout="home"] .ht-support-launcher > svg:first-child{width:18px;height:18px;color:inherit;stroke-width:1.35}
body:has(#app) .ht-support[data-layout="home"] .ht-support-launcher > svg:last-child{width:11px;height:11px;color:rgb(var(--home-support-rgb) / .65)}
body:has(#app) .ht-support[data-layout="home"] .ht-support-launcher:hover,
body:has(#app) .ht-support[data-layout="home"][data-open="true"] .ht-support-launcher{
 color:rgb(var(--home-support-rgb));border-color:rgb(var(--home-support-rgb) / .65);
 background:linear-gradient(155deg,rgb(var(--home-support-rgb) / .14),rgb(7 12 22 / .42));
 box-shadow:0 3px 20px #0003,inset 0 0 0 3px #ffffff05;
}
body:has(#app) .ht-support[data-layout="home"] .ht-support-panel{right:74px}
@media(max-width:600px){
 body:has(#app) .ht-support[data-layout="home"] .ht-support-launcher{right:8px;width:36px;padding:12px 0 10px;gap:10px}
 body:has(#app) .ht-support[data-layout="home"] .ht-support-launcher > span{font-size:10px;letter-spacing:3px}
 body:has(#app) .ht-support[data-layout="home"] .ht-support-panel{right:54px;width:min(342px,calc(100vw - 66px))}
}
