/* Approved H2 homepage only. Tool and brief pages keep create-guide styles. */
body.creation-starry-active{background:var(--canvas-black);isolation:isolate}
body.creation-starry-active::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background:url('./assets/themes/create-dark-dust.png') center/100% 100% no-repeat;opacity:.65;animation:creation-nebula-breathe 80s ease-in-out infinite alternate;animation-play-state:paused}
body.creation-starry-active[data-motion-enabled="true"]::before{animation-play-state:running}
body.creation-starry-active>footer{display:none}
body.creation-starry-active #browse-view{max-width:1460px;width:100%;padding:0 24px;margin:0 auto;background:none;border:0;box-shadow:none;border-radius:0}
#creation-guide.creation-starry{position:relative;min-height:580px;height:calc(100svh - 120px);max-height:1100px;--creation-text:#e2e6e5;--creation-muted:#9aa6ac;--creation-accent:#cbd4d6;--creation-line:#c4d2d923}
#creation-guide.creation-starry .creation-toolbar{position:absolute;left:50%;top:46%;transform:translate(-50%,-50%);z-index:3;width:clamp(320px,35vw,520px);max-width:100%;display:flex;flex-direction:column;align-items:stretch;gap:28px;margin:0;text-align:center}
#creation-guide.creation-starry .creation-heading h1{font-size:clamp(23px,2.2vw,32px);font-weight:400;letter-spacing:5px;margin:0;line-height:1.5}
#creation-guide.creation-starry .creation-search{width:100%;height:44px;min-height:44px;border-radius:999px;padding:0 18px;gap:13px;border:1px solid #c4d2d936;background:linear-gradient(120deg,#c4d9dc07,#e3edf302);box-shadow:none;transition:border-color .3s}
#creation-guide.creation-starry .creation-search:hover{border-color:#cbd8dc60}
#creation-guide.creation-starry .creation-search:focus-within{border-color:#cbd8dc80}
#creation-guide.creation-starry .creation-search input{height:42px;color:#e2e6e5;font-size:14px}
#creation-guide.creation-starry .creation-search input::placeholder{color:#919da5}
#creation-guide.creation-starry .creation-search svg{width:20px;height:20px;stroke:#c6d1d8}
.creation-star-field{position:absolute;inset:0;touch-action:none}
#creation-guide .creation-star{position:absolute;left:var(--x,50%);top:var(--y,50%);transform:translate(-50%,-50%);width:140px;min-height:62px;padding:8px 5px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;opacity:1;pointer-events:none;color:#c6ced3;font-family:var(--art-serif);font-size:15px;letter-spacing:1px}
#creation-guide .creation-star.is-lit{opacity:1;filter:none;pointer-events:auto;transition-duration:.28s}
.creation-star i,#creation-guide .creation-directory summary i{display:block;flex:none;width:3px;height:3px;border-radius:50%;background:var(--star-color,#e2e8f0);box-shadow:0 0 9px 2px #abb7d94d;opacity:.38;animation:var(--twinkle-pattern,creation-star-twinkle) var(--twinkle-duration,4s) ease-in-out var(--twinkle-delay,0s) infinite;animation-play-state:paused}
body[data-motion-enabled="true"] .creation-star i,body[data-motion-enabled="true"] #creation-guide .creation-directory summary i{animation-play-state:running}
.creation-star span{white-space:nowrap;opacity:0;filter:blur(2px);transform:translateY(3px);transition:opacity .65s ease,filter .65s ease,transform .65s ease}
.creation-star.is-lit span{opacity:1;filter:none;transform:none;transition-duration:.12s}
#creation-guide .creation-star.is-lit i{animation:none;opacity:.9;box-shadow:0 0 10px 2px #abb7d970;transition:opacity .28s,box-shadow .28s}
#creation-guide .creation-star:hover{color:#f4f1f3}
.creation-star:hover span{text-decoration:underline;text-underline-offset:9px;text-decoration-thickness:1px}
#creation-guide.creation-starry :is(a,summary,button):focus-visible{outline:1px solid #cbd8dc80;outline-offset:5px;border-radius:6px}
.creation-directory{position:absolute;left:50%;top:calc(46% + 94px);transform:translateX(-50%);z-index:4;width:min(440px,100%);text-align:center;font-family:var(--art-serif)}
#creation-guide .creation-directory summary{list-style:none;display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;min-height:60px;padding:8px 25px;color:#8b969fa6;font-family:var(--art-serif);font-size:11px;font-weight:400;line-height:1.6;letter-spacing:1px;cursor:pointer;background:none;border:0}
#creation-guide .creation-directory summary::-webkit-details-marker{display:none}
#creation-guide .creation-directory summary::after,#creation-guide .creation-directory[open]>summary::after{content:none}
#creation-guide .creation-directory summary:hover,#creation-guide .creation-directory summary:focus-visible{color:#a7b0b8}
.creation-directory nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:12px;background:var(--glass-black);border:1px solid #c4d2d925;border-radius:18px;backdrop-filter:blur(20px);box-shadow:0 18px 45px #0004}
.creation-directory nav a{padding:12px 2px;font-size:13px;min-height:44px;border-radius:8px;white-space:nowrap}
.creation-directory nav a:hover{background:#e2edf309}
#creation-guide.creation-starry.creation-has-query{height:auto;min-height:calc(100svh - 120px);padding:70px 0 48px;max-height:none}
#creation-guide.creation-has-query .creation-toolbar{position:relative;left:auto;top:auto;transform:none;margin:0 auto 36px}
#creation-guide.creation-has-query .creation-results{max-width:960px;margin:0 auto}
#creation-guide.creation-starry .creation-result-line{font-size:12px;color:#9aa6ac}
#creation-guide.creation-starry .creation-work{border-color:#c4d2d923;background:#07090d66;backdrop-filter:blur(12px)}
@keyframes creation-nebula-breathe{from{transform:scale(1.004)}to{transform:scale(1.008)}}
@keyframes creation-star-twinkle{0%,100%{opacity:.24;transform:scale(.8);box-shadow:0 0 6px 1px #abb7d926}50%{opacity:.72;transform:scale(1.15);box-shadow:0 0 10px 2px #abb7d94d}}
@media(max-width:640px){
 body.creation-starry-active #browse-view{padding:0 22px}
 #creation-guide.creation-starry{height:calc(100svh - 93px);min-height:620px;max-height:1000px}
 #creation-guide.creation-starry .creation-toolbar{width:100%;top:48%;gap:23px}
 #creation-guide.creation-starry .creation-heading h1{font-size:25px;letter-spacing:3px}
 #creation-guide.creation-starry .creation-search input{font-size:16px}
 #creation-guide .creation-star{font-size:13px;letter-spacing:0;width:30%;gap:11px}
 .creation-directory{top:calc(48% + 85px)}
 #creation-guide.creation-starry.creation-has-query{padding-top:40px;min-height:calc(100svh - 93px)}
 #creation-guide.creation-has-query .creation-toolbar{top:auto}
}
@media(prefers-reduced-motion:reduce){body.creation-starry-active::before{animation:none}#creation-guide.creation-starry *{transition:none!important;animation:none!important}}

/* Uneven quiet intervals and unequal peaks; each star has its own timing. */
@keyframes creation-star-flicker-0{0%,19%,46%,100%{opacity:.16;transform:scale(.75)}9%,61%{opacity:var(--twinkle-peak,.65);transform:scale(1.12)}27%,73%{opacity:.31;transform:scale(.9)}85%{opacity:.45;transform:scale(1)}}
@keyframes creation-star-flicker-1{0%,31%,69%,100%{opacity:.22;transform:scale(.85)}17%{opacity:.40;transform:scale(.98)}43%,82%{opacity:var(--twinkle-peak,.65);transform:scale(1.18)}53%,93%{opacity:.12;transform:scale(.7)}}
@keyframes creation-star-flicker-2{0%,24%,55%,100%{opacity:.13;transform:scale(.65)}12%,76%{opacity:var(--twinkle-peak,.65);transform:scale(1.1)}35%{opacity:.35;transform:scale(.92)}64%,88%{opacity:.27;transform:scale(.86)}}

/* Approved A: delicate four-ray stars, preserving the 3px layout footprint. */
#creation-guide .creation-star i,
#creation-guide .creation-directory summary i {
 position:relative;
 background:transparent;
 border-radius:0;
 box-shadow:none!important;
 transition:opacity .45s ease,filter .45s ease;
 filter:drop-shadow(0 0 1.2px #bacbff80);
}
#creation-guide .creation-star i::before,
#creation-guide .creation-directory summary i::before {
 content:"";position:absolute;left:-2px;top:-3px;width:7px;height:9px;
 background:var(--star-color,#d4dfff);
 -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 18'%3E%3Cpath d='M7 0C7.8 6.8 8.4 8.2 14 9C8.4 9.8 7.8 11.2 7 18C6.2 11.2 5.6 9.8 0 9C5.6 8.2 6.2 6.8 7 0Z' fill='white'/%3E%3C/svg%3E") center/contain no-repeat;
 mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 18'%3E%3Cpath d='M7 0C7.8 6.8 8.4 8.2 14 9C8.4 9.8 7.8 11.2 7 18C6.2 11.2 5.6 9.8 0 9C5.6 8.2 6.2 6.8 7 0Z' fill='white'/%3E%3C/svg%3E") center/contain no-repeat;
}
#creation-guide .creation-star i::after,
#creation-guide .creation-directory summary i::after {
 content:"";position:absolute;left:-3px;top:-4px;width:9px;height:11px;opacity:.28;
 background:linear-gradient(transparent,#cad8ff,transparent) center/0.5px 100% no-repeat,
 linear-gradient(90deg,transparent,#cad8ff,transparent) center/100% 0.5px no-repeat;
 transition:opacity .45s ease;
}
#creation-guide .creation-star.is-lit i {
 opacity:1;filter:drop-shadow(0 0 1.6px #b5c9ffb3);
}
#creation-guide .creation-star.is-lit i::after,
#creation-guide .creation-directory summary:hover i::after {opacity:.65}
@media(prefers-reduced-motion:reduce){
 #creation-guide .creation-star i,#creation-guide .creation-star i::after,
 #creation-guide .creation-directory summary i,#creation-guide .creation-directory summary i::after{transition:none}
}

/* Portrait screens retain both nebula corners without distorting the landscape art. */
@media(max-width:900px) and (orientation:portrait){
 body.creation-starry-active::before,
 body.creation-starry-active::after{
  background-image:url('./assets/themes/create-dark-dust.png');
  background-size:auto max(480px,78svh);
  background-repeat:no-repeat;
 }
 body.creation-starry-active::before{
  background-position:left bottom;
  -webkit-mask-image:radial-gradient(ellipse 95% 80% at left bottom,#000 0%,#000b 35%,transparent 85%);
  mask-image:radial-gradient(ellipse 95% 80% at left bottom,#000 0%,#000b 35%,transparent 85%);
 }
 body.creation-starry-active::after{
  content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;opacity:.65;
  background-position:right top;
  -webkit-mask-image:radial-gradient(ellipse 95% 80% at right top,#000 0%,#000b 35%,transparent 85%);
  mask-image:radial-gradient(ellipse 95% 80% at right top,#000 0%,#000b 35%,transparent 85%);
 }
}

.creation-nebula-flow{position:fixed;inset:0;width:100%;height:100svh;z-index:-1;pointer-events:none}
.creation-nebula-flow[hidden]{display:none}
body.creation-starry-active.creation-flow-ready::before,
body.creation-starry-active.creation-flow-ready::after{opacity:0;animation:none}

/* Pointer-transparent, local constellation lines below the star labels. */
.creation-constellation{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:0}
.creation-constellation.scorpio-completion{z-index:6}
#creation-guide.scorpio-revealing :is(.creation-toolbar,.creation-directory,.creation-star-field){opacity:0;pointer-events:none;transition:opacity .6s ease}
#creation-guide.scorpio-revealing :is(.creation-toolbar,.creation-directory){filter:blur(5px)}
#creation-guide :is(.creation-toolbar,.creation-directory,.creation-star-field){transition:opacity .6s ease,filter .6s ease}
.creation-star-field{z-index:1}

/* Preview-approved Scorpio: small fixed hit areas free the silhouette from columns. */
#creation-guide.creation-starry .creation-star-field .creation-star{
 width:44px;height:44px;min-height:44px;padding:0;gap:0;justify-content:center;
}
#creation-guide.creation-starry .creation-star-field .creation-star span{
 position:absolute;top:36px;left:50%;transform:translateX(-50%);
 padding:4px 9px;line-height:24px;white-space:nowrap;
 background:radial-gradient(ellipse,#030508dd,transparent);pointer-events:none;
}
#creation-guide.creation-starry .creation-star-field .creation-star.is-lit span{pointer-events:auto;transform:translateX(-50%)}
#creation-guide.creation-starry .creation-star-field .creation-star.star-label-left span{left:0;transform:none}
#creation-guide.creation-starry .creation-star-field .creation-star.star-label-right span{left:auto;right:0;transform:none}
#creation-guide.creation-starry .creation-star-field .creation-star.star-label-above span{top:auto;bottom:36px}

@media (min-width:901px) {
 body.creation-starry-active:not(.creation-flow-ready)::before {
  animation-name:creation-desktop-drift;
  animation-duration:14s;
 }
}
@keyframes creation-desktop-drift {
 from {transform:scale(1.025) translate(-.6%,.3%)}
 to {transform:scale(1.025) translate(.6%,-.3%)}
}
