/* Theme tokens are shared by every major surface, not just the welcome screen. */
.resume-guide{display:flex;align-items:center;gap:20px;padding:22px;margin:0 0 28px;border:1px solid var(--theme-edge);border-left:4px solid var(--theme-accent);border-radius:18px;background:linear-gradient(115deg,var(--theme-panel),var(--theme-bg));color:#eefaff}.resume-mark{font-size:2rem;color:var(--theme-accent)}.resume-copy{flex:1;min-width:0}.resume-copy .eyebrow{margin:0 0 6px}.resume-copy b{font-size:1rem;overflow-wrap:anywhere}.resume-copy>p:last-child{margin:5px 0 0;font-size:.875rem;color:var(--theme-muted)}.resume-meter{width:90px;flex-shrink:0;color:var(--theme-accent);font-size:.875rem}.resume-meter progress{width:100%;height:5px;display:block;margin-top:8px;accent-color:var(--theme-accent)}.resume-guide .button{white-space:normal;text-align:center}.filter-summary,.active-filters{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.filter-summary{justify-content:space-between;margin:0 0 18px;padding:12px;background:var(--theme-panel);border-radius:12px}.filter-chip{display:inline-flex;align-items:center;gap:6px;max-width:100%;min-height:36px;padding:6px 10px;border:1px solid var(--theme-edge);border-radius:20px;color:#effaff;background:var(--theme-bg);font:inherit;font-size:.875rem;cursor:pointer}.filter-chip b{font-weight:500;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.filter-chip:hover{border-color:var(--theme-accent)}.comparison-tools{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:8px 0 18px;padding:12px;border:1px solid var(--theme-edge);border-radius:12px}.comparison-tools .checkbox-row,.comparison-tools p{margin:0}.comparison-tools p{margin-left:auto}.comparison-tools label{font-size:.875rem}.comparison-tools input{accent-color:var(--theme-accent)}#comparison-table{max-width:100%;outline-offset:3px}#comparison-table table{width:100%;table-layout:fixed;min-width:520px}#comparison-table th,#comparison-table td{overflow-wrap:anywhere;vertical-align:top;font-size:.875rem;line-height:1.6;padding:14px}#comparison-table th:first-child{width:25%}#comparison-table tr.comparison-different>th{border-left:3px solid var(--theme-accent)}#comparison-table thead th{color:var(--theme-accent);background:var(--theme-panel);font-size:1rem}.comparison-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:20px}.comparison-actions button{white-space:normal;overflow-wrap:anywhere;min-width:0}.resume-guide[hidden],.filter-summary[hidden]{display:none!important}@media(max-width:680px){.resume-guide{gap:12px;flex-wrap:wrap;padding:16px}.resume-mark{display:none}.resume-copy{flex-basis:calc(100% - 105px)}.resume-guide>a{width:100%}.comparison-tools{gap:12px}.comparison-tools p{margin-left:0}.comparison-actions{grid-template-columns:1fr}#comparison-table th,#comparison-table td{padding:10px}.filter-summary{align-items:flex-start}}
:root{--theme-bg:#0b101b;--theme-panel:#142237;--theme-raised:#243553;--theme-edge:#425c79;--theme-accent:#85e4e4;--theme-pink:#a8baff;--theme-ink:#0a2835;--theme-muted:#b6c9de}
:root[data-theme=aurora]{--theme-bg:#091a18;--theme-panel:#102f2a;--theme-raised:#20493e;--theme-edge:#427f70;--theme-accent:#a3f2bb;--theme-pink:#72dfe7;--theme-ink:#09251a;--theme-muted:#bbdace}
:root[data-theme=sunset]{--theme-bg:#1b1028;--theme-panel:#2d1d40;--theme-raised:#4b2f58;--theme-edge:#816080;--theme-accent:#ffd0a0;--theme-pink:#e7a0e4;--theme-ink:#382034;--theme-muted:#ddc5df}
:root[data-theme=vocaloid]{--theme-bg:#071b25;--theme-panel:#0d3039;--theme-raised:#16444e;--theme-edge:#438b91;--theme-accent:#7cfff0;--theme-pink:#ff91ca;--theme-ink:#092b32;--theme-muted:#b6e0e3}
html[data-theme]{--accent:var(--theme-accent);--accent-ink:var(--theme-ink);--bg:var(--theme-bg);--muted:var(--theme-muted)}
html[data-theme] body{background:var(--theme-bg);isolation:isolate}.shell{position:relative;z-index:1}
html[data-theme] :is(.sidebar,.topbar){background:color-mix(in srgb,var(--theme-bg) 92%,transparent);border-color:var(--theme-edge)}
html[data-theme] :is(.panel,.review-card,.assistant-panel,dialog,.hardware-panel,.step-content,.version-row,.ai-options,.local-ai-panel){background:linear-gradient(140deg,var(--theme-raised),var(--theme-panel) 70%);border-color:var(--theme-edge)}
html[data-theme] .os-card{background:linear-gradient(145deg,color-mix(in srgb,var(--os-color) 8%,var(--theme-raised)),var(--theme-panel) 75%);border-color:var(--theme-edge)}
html[data-theme] .os-card.selected{border-color:var(--theme-accent)}
html[data-theme] .intro{background:linear-gradient(115deg,var(--theme-raised),var(--theme-panel));border-color:var(--theme-edge)}
html[data-theme] :is(.msg.ai,.mini-review,.search-field,.chat-form,.filters,.suggestions button,.dropzone){background:color-mix(in srgb,var(--theme-bg) 65%,var(--theme-panel));border-color:var(--theme-edge)}
html[data-theme] :is(.msg.user,.nav-link.active,.select-os,.filters button[aria-pressed=true]){background:var(--theme-raised);border-color:var(--theme-edge);color:#eaffff}
html[data-theme] :is(.button.primary,.selected .select-os,.chat-form button,.brand-icon){background:var(--theme-accent);color:var(--theme-ink);border-color:var(--theme-accent)}
html[data-theme] :is(.top-actions select,.search-row select,#review-family,.field-grid input,.field-grid select){background:var(--theme-panel);border-color:var(--theme-edge);color:#f2f8ff}
html[data-theme] .welcome{background:radial-gradient(ellipse at 50% 45%,color-mix(in srgb,var(--theme-accent) 6%,transparent),transparent 64%)}
html[data-theme] .welcome-wordmark{background-image:linear-gradient(115deg,#efffff 5%,var(--theme-accent) 43%,var(--theme-pink) 85%)}
html[data-theme] .welcome-start{background:linear-gradient(110deg,var(--theme-accent),color-mix(in srgb,var(--theme-pink) 65%,white));color:var(--theme-ink);box-shadow:0 0 0 6px color-mix(in srgb,var(--theme-accent) 5%,transparent),0 12px 48px color-mix(in srgb,var(--theme-accent) 22%,transparent)}
html[data-theme] .welcome-halo{background:radial-gradient(ellipse,transparent 34%,color-mix(in srgb,var(--theme-pink) 9%,transparent) 47%,color-mix(in srgb,var(--theme-accent) 23%,transparent) 49%,transparent 61%)}
html[data-theme] .assistant-symbol{background:linear-gradient(140deg,var(--theme-raised),var(--theme-edge));border-color:var(--theme-accent)}
.appearance-settings{padding:4px 0 24px;margin-bottom:24px;border-bottom:1px solid var(--theme-edge)}.appearance-settings h3{font-size:1.2rem;margin-bottom:8px}.theme-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0}.theme-choice{display:flex;flex-direction:column;text-align:left;padding:10px;border:1px solid var(--theme-edge);border-radius:12px;background:var(--theme-bg);color:#f0f8ff;gap:6px;min-width:0}.theme-choice b{font-size:.875rem}.theme-choice small{font-size:.75rem;color:var(--theme-muted)}.theme-choice[aria-pressed=true]{border-color:var(--theme-accent);box-shadow:0 0 0 2px var(--theme-accent)}.theme-preview{height:52px;width:100%;border-radius:7px;display:flex;align-items:center;gap:5px;padding:10px;background:linear-gradient(135deg,var(--swatch-bg),var(--swatch-a))}.theme-preview i{height:24px;width:11px;border-radius:3px;background:var(--swatch-b)}.theme-preview i:nth-child(2){height:35px}.preview-midnight{--swatch-bg:#0b101b;--swatch-a:#294963;--swatch-b:#85e4e4}.preview-aurora{--swatch-bg:#091a18;--swatch-a:#267756;--swatch-b:#a3f2bb}.preview-sunset{--swatch-bg:#1b1028;--swatch-a:#7c4379;--swatch-b:#ffd0a0}.preview-vocaloid{--swatch-bg:#07363d;--swatch-a:#219c9d;--swatch-b:#ff91ca}.vfx-label{display:block;margin:18px 0 8px;font-weight:600}#vfx-level{width:100%;padding:11px;border:1px solid var(--theme-edge);border-radius:9px;background:var(--theme-bg);color:#efffff}.appearance-settings p{margin-top:12px;line-height:1.6}.theme-shortcut{color:var(--theme-accent);font-size:.8125rem;min-height:40px;border:1px solid var(--theme-edge);border-radius:9px;padding:8px 10px;white-space:nowrap}
.ai-compatibility{margin:20px 0;padding:16px;border:1px solid var(--theme-edge);border-radius:12px;background:var(--theme-bg)}.ai-compatibility h3{font-size:1rem}.ai-compatibility details{margin-top:16px;font-size:.875rem;line-height:1.6}.ai-compatibility li{margin:12px 0}.ai-compatibility ul{padding-left:18px}.ai-compatibility summary{cursor:pointer;color:var(--theme-accent)}.ai-compatibility a{color:var(--theme-accent);text-decoration:underline}#ai-compatibility-result{padding-left:12px;border-left:2px solid var(--theme-accent)}
/* Visible but bounded VFX: three ribbons, twelve motes, six short-lived click sparks. */
#ambient-vfx{position:fixed;inset:0;overflow:hidden;pointer-events:none;z-index:0;contain:strict}.aurora-ribbons{position:absolute;inset:-25%;opacity:.28;filter:blur(35px);transform:rotate(-22deg)}.aurora-ribbons i{position:absolute;width:38%;height:130%;border-radius:50%;background:radial-gradient(ellipse,var(--theme-accent),transparent 64%);animation:ribbon-drift 18s ease-in-out infinite;left:0;top:-25%}.aurora-ribbons i:nth-child(2){left:34%;background:radial-gradient(ellipse,var(--theme-pink),transparent 65%);animation-delay:-6s}.aurora-ribbons i:nth-child(3){left:72%;animation-delay:-12s}.vfx-dust i{position:absolute;width:3px;height:3px;border-radius:50%;background:var(--theme-accent);box-shadow:0 0 12px var(--theme-accent);animation:dust-rise 10s ease-in-out infinite;animation-delay:calc(var(--n)*-.8s)}
.vocaloid-stage{display:none;position:absolute;inset:0;overflow:hidden}[data-theme=vocaloid] .vocaloid-stage{display:block}.stage-beam{position:absolute;top:-15%;width:36%;height:105%;transform-origin:50% 0;opacity:.3;background:linear-gradient(var(--theme-accent),transparent 85%);clip-path:polygon(48% 0,52% 0,100% 100%,0 100%);animation:stage-sweep 12s ease-in-out infinite}.beam-left{left:-12%;rotate:-18deg}.beam-right{right:-12%;rotate:18deg;background:linear-gradient(var(--theme-pink),transparent 85%);animation-delay:-6s}.stage-disc{position:absolute;inset:6% auto auto 50%;width:min(690px,110vw);aspect-ratio:1;border:1px dashed #7cfff077;border-radius:50%;transform:translateX(-50%);box-shadow:0 0 0 20px #7cfff006,0 0 0 70px #ff91ca04}.stage-equalizer{position:absolute;display:flex;align-items:flex-end;justify-content:center;gap:8px;bottom:5%;left:0;right:0;height:150px;opacity:.3}.stage-equalizer i{height:var(--bar);width:12px;background:linear-gradient(var(--theme-pink),var(--theme-accent));border-radius:3px 3px 0 0;transform-origin:bottom;animation:equalizer-dance 2.8s ease-in-out infinite;animation-delay:calc(var(--n)*-.17s)}.stage-note{position:absolute;font-size:clamp(4rem,9vw,8rem);font-weight:700;color:var(--theme-pink);opacity:.4;text-shadow:0 0 35px #ff91ca55;animation:note-float 7s ease-in-out infinite}.note-left{left:7%;top:34%;rotate:-16deg}.note-right{right:6%;top:51%;rotate:14deg;animation-delay:-3s;color:var(--theme-accent)}
.vfx-burst{position:fixed;z-index:9999;width:0;height:0;pointer-events:none}.vfx-burst i{position:absolute;font-style:normal;font-size:15px;line-height:1;color:var(--theme-accent);text-shadow:0 0 10px var(--theme-accent);animation:spark-burst .7s ease-out both}.vfx-burst i:nth-child(even){color:var(--theme-pink)}
@keyframes ribbon-drift{50%{transform:translate(9%,6%) scale(.9)}}@keyframes dust-rise{0%,100%{opacity:.25;transform:translateY(10px)}50%{opacity:.8;transform:translateY(-25px)}}@keyframes stage-sweep{50%{transform:rotate(16deg);opacity:.15}}@keyframes equalizer-dance{0%,100%{transform:scaleY(.35)}50%{transform:scaleY(1)}}@keyframes note-float{50%{transform:translateY(-18px) rotate(8deg)}}@keyframes spark-burst{from{opacity:1;transform:translate(-50%,-50%) scale(.35)}to{opacity:0;transform:translate(var(--dx),var(--dy)) rotate(var(--turn)) scale(.9)}}
[data-vfx=soft] .aurora-ribbons{opacity:.12}[data-vfx=soft] :is(.vfx-dust,.stage-note){display:none}[data-vfx=soft] .stage-equalizer{opacity:.15}[data-vfx=soft] .stage-beam{opacity:.12}
[data-vfx=off] :is(#ambient-vfx,.vocaloid-stage,.vfx-burst){display:none}[data-vfx=off] .welcome-universe *{animation:none!important}[data-vfx=off] :is(.control-ripple,.motion-control:before,.welcome-start:after){display:none!important}
.reduce-motion :is(#ambient-vfx,.vocaloid-stage) *{animation:none!important}.reduce-motion .vfx-burst{display:none}.motion-paused .vfx-burst{display:none}
@media(prefers-reduced-motion:reduce){#ambient-vfx *,.vocaloid-stage *{animation:none!important}.vfx-burst{display:none}}
@media(max-width:540px){.theme-shortcut{padding:7px;font-size:.75rem}.is-welcome .welcome-brand{font-size:0;gap:0}.is-welcome .welcome-brand .brand-icon{font-size:1.5rem;margin:0}.stage-note{font-size:3.6rem;opacity:.23}.stage-equalizer{gap:5px;bottom:2%}.stage-equalizer i{width:7px}.theme-grid{gap:10px}.aurora-ribbons{filter:blur(20px)}}

/* Theme gallery: a dedicated menu, with persistent choices and native dialog keyboard behavior. */
#theme-gallery{width:min(960px,calc(100vw - 32px));max-width:none;max-height:88svh;padding:26px;overflow:auto;overscroll-behavior:contain}
#theme-gallery .dialog-heading{position:sticky;top:-26px;z-index:4;margin:-26px -26px 0;padding:22px 26px 16px;background:var(--theme-panel);border-bottom:1px solid var(--theme-edge)}
#theme-gallery .dialog-heading .small{margin-top:8px}#theme-gallery .appearance-settings{border:0;margin-bottom:0;padding-bottom:8px}#theme-gallery .theme-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}#theme-gallery .theme-choice{padding:10px;transition:border-color .2s,background .2s,transform .2s}#theme-gallery .theme-choice b{font-size:.85rem;line-height:1.5}#theme-gallery .theme-choice small{line-height:1.5}.theme-preview{position:relative;height:86px;overflow:hidden}.theme-check{display:none;position:absolute;right:7px;top:7px;border-radius:50%;width:24px;height:24px;align-items:center;justify-content:center;background:#edffff;color:#092b32;font-weight:800}.theme-choice[aria-pressed=true] .theme-check{display:flex}.theme-done{display:block;margin:8px 0 0 auto;min-width:110px}.theme-choice:focus-visible{outline:2px solid var(--theme-pink);outline-offset:4px}
.preview-vocaloid{background:linear-gradient(0deg,#071b2533,#071b2500),url('/wp-content/uploads/2026/10/vocaloid-stage-v1.png') center/cover}.preview-vocaloid i{display:none}
.preview-sakura{--swatch-bg:#241321;--swatch-a:#905673;--swatch-b:#ffd4e6}.preview-sakura i{border-radius:50% 0 50% 50%;rotate:-25deg}.preview-ocean{--swatch-bg:#081b30;--swatch-a:#16658a;--swatch-b:#8bdeff}.preview-terminal{--swatch-bg:#09150d;--swatch-a:#235331;--swatch-b:#a2f5a4}.preview-terminal i{border-radius:0;height:5px;width:28px}.preview-carbon{--swatch-bg:#14171d;--swatch-a:#3f454d;--swatch-b:#dde4ed}
:root[data-theme=sakura]{--theme-bg:#241321;--theme-panel:#382339;--theme-raised:#53344c;--theme-edge:#8c6484;--theme-accent:#ffd0e2;--theme-pink:#c9b2ff;--theme-ink:#361c2e;--theme-muted:#e1c8df}
:root[data-theme=ocean]{--theme-bg:#081b30;--theme-panel:#102f49;--theme-raised:#17455f;--theme-edge:#497d9b;--theme-accent:#8bdeff;--theme-pink:#92b2ff;--theme-ink:#07293a;--theme-muted:#bad6e6}
:root[data-theme=terminal]{--theme-bg:#09150d;--theme-panel:#102619;--theme-raised:#193b25;--theme-edge:#4a7955;--theme-accent:#a2f5a4;--theme-pink:#d1f6a1;--theme-ink:#102b14;--theme-muted:#bad5bb}
:root[data-theme=carbon]{--theme-bg:#14171d;--theme-panel:#20262f;--theme-raised:#343d48;--theme-edge:#65717f;--theme-accent:#dbe5f2;--theme-pink:#a7b8ce;--theme-ink:#1a2638;--theme-muted:#c1cbd6}
[data-theme=terminal] .welcome-universe{background-image:linear-gradient(#a2f5a411 1px,transparent 1px),linear-gradient(90deg,#a2f5a411 1px,transparent 1px);background-size:42px 42px}[data-theme=terminal] :is(.welcome-kicker,.intro .eyebrow){font-family:ui-monospace,monospace}
[data-theme=sakura] .vfx-dust i{width:9px;height:14px;border-radius:70% 10% 60% 30%;rotate:35deg;background:var(--theme-accent);box-shadow:none;opacity:.45}
[data-theme=carbon] .aurora-ribbons{opacity:.06}[data-theme=carbon] .vfx-dust{display:none}[data-theme=ocean] .welcome-ring{border-color:#8bdeff66;box-shadow:0 0 50px #318bbb18}

/* AI-created character art is decorative; UI surfaces stay opaque and readable. */
#theme-wallpaper{display:none;position:fixed;inset:0;pointer-events:none;z-index:0;background-position:center;background-repeat:no-repeat;background-size:cover;opacity:.22}
[data-theme=vocaloid] #theme-wallpaper{display:block}[data-theme=vocaloid] .is-welcome #theme-wallpaper{opacity:.82}
[data-theme=vocaloid] .is-welcome .welcome{background:linear-gradient(90deg,#071b2514, #071b25b3 35%,#071b25b3 65%,#071b2514)}
[data-theme=vocaloid] .welcome-halo{opacity:.22;animation:none}[data-theme=vocaloid] :is(.stage-note,.stage-disc){display:none}[data-theme=vocaloid] .stage-beam{opacity:.09}[data-theme=vocaloid] .stage-equalizer{opacity:.12}[data-theme=vocaloid] .aurora-ribbons{opacity:.06}
.character-banner{display:none}
@media(min-width:1101px){[data-theme=vocaloid] .welcome-content{max-width:660px}[data-theme=vocaloid] .welcome-wordmark{font-size:clamp(5rem,7.2vw,7.7rem)}[data-theme=vocaloid] .welcome-description{max-width:420px}}
@media(max-width:1100px){
 [data-theme=vocaloid] .is-welcome #theme-wallpaper{opacity:.14}
 [data-theme=vocaloid] .character-banner{display:block;width:min(610px,100%);aspect-ratio:16/9;background-size:cover;background-position:center;margin:0 auto 26px;border:1px solid #72dfeb55;border-radius:20px;box-shadow:0 15px 60px #0004}
 [data-theme=vocaloid] .welcome{padding-top:28px}[data-theme=vocaloid] .welcome-content{padding-bottom:35px}
}
@media(max-width:720px){#theme-gallery .theme-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#theme-gallery{padding:18px}#theme-gallery .dialog-heading{top:-18px;margin:-18px -18px 0;padding:18px}#theme-gallery .dialog-heading h2{font-size:1.3rem}.theme-preview{height:90px}}
@media(prefers-reduced-motion:reduce){.theme-choice{transition:none!important}}
.theme-sound-panel{margin-top:24px;padding:20px;border:1px solid var(--theme-edge);border-radius:14px;background:var(--theme-bg)}.theme-sound-panel h3{font-size:1.125rem}.theme-sound-panel .preference-row{margin:12px 0}.theme-sound-panel .sound-controls{margin:10px 0 16px}.theme-sound-panel p{font-size:.875rem;line-height:1.6}.theme-sound-panel select{display:block;width:100%;margin:8px 0 12px;padding:11px;background:var(--theme-panel);color:#efffff;border:1px solid var(--theme-edge);border-radius:9px;font:inherit}.theme-sound-panel label{font-size:.875rem}.theme-sound-panel button{margin-top:14px}

/* The live companion owns the palette, including the two Midnight choices. */
.preview-midnight{--swatch-bg:#130e24;--swatch-a:#665382;--swatch-b:#dec4ff}
.preview-aurora{--swatch-bg:#111422;--swatch-a:#635784;--swatch-b:#a7efd2}
.preview-sunset{--swatch-bg:#241014;--swatch-a:#8c483e;--swatch-b:#ffd0a0}
.preview-sakura{--swatch-bg:#241321;--swatch-a:#945f88;--swatch-b:#9cdbff}
.preview-ocean{--swatch-bg:#081d27;--swatch-a:#286b6b;--swatch-b:#9ee9df}
.preview-terminal{--swatch-bg:#141126;--swatch-a:#665b95;--swatch-b:#a8eaff}
.preview-carbon{--swatch-bg:#19171b;--swatch-a:#75616c;--swatch-b:#f2ceb8}
html[data-companion-effect=hologram] .welcome-universe{background-image:linear-gradient(color-mix(in srgb,var(--theme-accent) 8%,transparent) 1px,transparent 1px),linear-gradient(90deg,color-mix(in srgb,var(--theme-accent) 8%,transparent) 1px,transparent 1px);background-size:42px 42px}
html[data-companion-effect] .welcome-ring{border-color:color-mix(in srgb,var(--theme-accent) 38%,transparent);box-shadow:0 0 50px color-mix(in srgb,var(--theme-pink) 9%,transparent)}
[data-companion-effect=moon] .vfx-dust i{width:5px;height:5px;border-radius:0;rotate:45deg;box-shadow:0 0 14px var(--theme-pink)}
[data-companion-effect=night] .aurora-ribbons{opacity:.1}[data-companion-effect=night] .vfx-dust i{background:var(--theme-pink);opacity:.4}
[data-companion-effect=aurora] .aurora-ribbons{opacity:.24}
[data-companion-effect=embers] .aurora-ribbons{opacity:.14;transform:rotate(12deg)}[data-companion-effect=embers] .vfx-dust i{width:4px;height:7px;border-radius:50%;background:var(--theme-pink);animation:ember-rise 8s ease-in-out infinite;animation-delay:calc(var(--n)*-.7s)}
[data-companion-effect=petals] .aurora-ribbons{opacity:.12}[data-companion-effect=petals] .vfx-dust i:nth-child(even){background:var(--theme-pink)}
[data-companion-effect=water] .aurora-ribbons{opacity:.17}[data-companion-effect=water] .vfx-dust i{width:7px;height:7px;background:transparent;border:1px solid var(--theme-accent);box-shadow:0 0 10px color-mix(in srgb,var(--theme-pink) 30%,transparent);animation:bubble-rise 12s ease-in-out infinite;animation-delay:calc(var(--n)*-.8s)}
[data-companion-effect=hologram] .aurora-ribbons{opacity:.15;filter:blur(24px)}[data-companion-effect=hologram] .vfx-dust i{width:5px;height:5px;border-radius:1px;background:var(--theme-pink);animation:hologram-pulse 6s ease-in-out infinite;animation-delay:calc(var(--n)*-.5s)}
[data-companion-effect=copper] .aurora-ribbons{opacity:.08}[data-companion-effect=copper] .vfx-dust{display:none}
[data-companion-effect] .avatar-halo{border-color:color-mix(in srgb,var(--theme-accent) 40%,transparent);box-shadow:0 0 36px color-mix(in srgb,var(--theme-pink) 12%,transparent)}
[data-companion-effect=hologram] .avatar-halo{border-radius:22%;rotate:45deg}
@keyframes ember-rise{0%,100%{opacity:.12;transform:translateY(18px) scale(.6)}50%{opacity:.65;transform:translateY(-44px) scale(1)}}
@keyframes bubble-rise{0%,100%{opacity:.1;transform:translateY(20px) scale(.7)}50%{opacity:.55;transform:translateY(-40px) scale(1)}}
@keyframes hologram-pulse{0%,100%{opacity:.15;transform:translateY(8px)}50%{opacity:.65;transform:translateY(-12px)}}
/* Character effects do not override user accessibility/performance choices. */
[data-vfx=soft][data-companion-effect] .aurora-ribbons{opacity:.08}
.reduce-motion[data-companion-effect] #ambient-vfx *, .motion-paused[data-companion-effect] #ambient-vfx *{animation:none!important}
@media(prefers-reduced-motion:reduce){[data-companion-effect] #ambient-vfx *{animation:none!important}}

/* Original illustrated scenery atlas: each theme has its own environment.
   208% height safely crops the slightly uneven generated row boundary. */
:root{--scene-x:0%;--scene-y:0%}
[data-theme=midnight],.preview-midnight{--scene-x:0%;--scene-y:0%}
[data-theme=aurora],.preview-aurora{--scene-x:33.333333%;--scene-y:0%}
[data-theme=sunset],.preview-sunset{--scene-x:66.666667%;--scene-y:0%}
[data-theme=sakura],.preview-sakura{--scene-x:100%;--scene-y:0%}
[data-theme=ocean],.preview-ocean{--scene-x:0%;--scene-y:100%}
[data-theme=terminal],.preview-terminal{--scene-x:33.333333%;--scene-y:100%}
[data-theme=carbon],.preview-carbon{--scene-x:66.666667%;--scene-y:100%}
[data-theme=vocaloid],.preview-vocaloid{--scene-x:100%;--scene-y:100%}
/* The page has its own flowing light field, NOT the companion's illustration. */
#theme-scenery{position:fixed;inset:0 0 0 224px;z-index:0;pointer-events:none;overflow:hidden;contain:strict;opacity:.8;transition:opacity .4s}
#theme-scenery::before,#theme-scenery::after{content:"";position:absolute;inset:-22%;pointer-events:none;will-change:transform;transform-origin:center}
#theme-scenery::before{background:radial-gradient(ellipse at 12% 25%,color-mix(in srgb,var(--theme-accent) 30%,transparent),transparent 42%),radial-gradient(ellipse at 85% 75%,color-mix(in srgb,var(--theme-pink) 24%,transparent),transparent 45%),linear-gradient(120deg,transparent 20%,color-mix(in srgb,var(--theme-accent) 9%,transparent) 40%,transparent 60%);animation:theme-flow-light 10s ease-in-out infinite alternate}
#theme-scenery::after{background:repeating-linear-gradient(115deg,transparent 0 9%,color-mix(in srgb,var(--theme-accent) 10%,transparent) 11%,transparent 14% 22%);mask-image:radial-gradient(ellipse at 70% 40%,black,transparent 72%);animation:theme-flow-ribbons 14s ease-in-out infinite alternate}
[data-theme=ocean] #theme-scenery::after{background:repeating-linear-gradient(108deg,transparent 0 8%,#7adfff26 10%,transparent 13% 20%);mask-image:linear-gradient(black,transparent 85%)}
[data-theme=terminal] #theme-scenery::after{background:repeating-linear-gradient(0deg,transparent 0 35px,color-mix(in srgb,var(--theme-accent) 12%,transparent) 36px,transparent 38px 76px),repeating-linear-gradient(90deg,transparent 0 75px,color-mix(in srgb,var(--theme-pink) 8%,transparent) 76px,transparent 78px 152px)}
[data-theme=carbon] #theme-scenery::after{opacity:.5}
/* Distinct abstract environments, separate from each companion illustration.
   Only compositor transforms move; no full-screen paint or pointer handlers. */
[data-companion-effect=moon] #theme-scenery::before{background:radial-gradient(ellipse at 75% 12%,#e4caff38,transparent 34%),radial-gradient(ellipse at 15% 80%,#7057d434,transparent 43%);animation:moon-glow 18s ease-in-out infinite alternate}
[data-companion-effect=moon] #theme-scenery::after,[data-companion-effect=night] #theme-scenery::after{background:repeating-radial-gradient(ellipse at 65% 20%,transparent 0 9%,color-mix(in srgb,var(--theme-pink) 15%,transparent) 9.2%,transparent 9.5% 18%);mask-image:linear-gradient(transparent,black 45%,transparent);animation:lunar-orbit 24s ease-in-out infinite alternate}
[data-companion-effect=night] #theme-scenery::before{background:radial-gradient(ellipse at 90% 15%,#e2ddff30,transparent 38%),radial-gradient(ellipse at 20% 85%,#635d9538,transparent 45%);animation:moon-glow 22s ease-in-out infinite alternate}
[data-companion-effect=aurora] #theme-scenery::before{background:radial-gradient(ellipse at 20% 25%,#99efbc40,transparent 40%),radial-gradient(ellipse at 70% 60%,#bca1ff42,transparent 48%);animation:aurora-curtain 14s ease-in-out infinite alternate}
[data-companion-effect=aurora] #theme-scenery::after{background:repeating-linear-gradient(102deg,transparent 0 8%,#b3ffe21a 9%,#ccb6ff28 12%,transparent 16% 26%);mask-image:linear-gradient(transparent,black 25%,transparent 90%);animation:aurora-curtain 19s ease-in-out infinite alternate-reverse}
[data-companion-effect=embers] #theme-scenery::before{background:radial-gradient(ellipse at 15% 92%,#ff8e4840,transparent 48%),radial-gradient(ellipse at 85% 72%,#d6512c30,transparent 46%);animation:heat-drift 11s ease-in-out infinite alternate}
[data-companion-effect=embers] #theme-scenery::after{background:repeating-linear-gradient(92deg,transparent 0 14%,#ffb25d16 15%,transparent 18% 28%);mask-image:linear-gradient(transparent 20%,black);animation:heat-drift 16s ease-in-out infinite alternate-reverse}
[data-companion-effect=petals] #theme-scenery::before{background:radial-gradient(ellipse at 85% 15%,#ffd2e13d,transparent 38%),radial-gradient(ellipse at 12% 75%,#a7cfff2b,transparent 48%);animation:sakura-light 16s ease-in-out infinite alternate}
[data-companion-effect=petals] #theme-scenery::after{background:radial-gradient(circle at 18% 30%,#ffd2e12b 0 2px,transparent 3px),radial-gradient(circle at 70% 60%,#bae7ff28 0 3px,transparent 4px);background-size:170px 190px,240px 270px;mask-image:linear-gradient(transparent,black 20%,transparent);animation:sakura-light 22s ease-in-out infinite alternate-reverse}
[data-companion-effect=water] #theme-scenery::before{background:radial-gradient(ellipse at 60% 0%,#89e7ff45,transparent 50%),radial-gradient(ellipse at 10% 85%,#567ccd3a,transparent 46%);animation:ocean-current 13s ease-in-out infinite alternate}
[data-companion-effect=water] #theme-scenery::after{background:repeating-linear-gradient(108deg,transparent 0 6%,#adf6ff28 8%,transparent 11% 18%);mask-image:linear-gradient(black,transparent 92%);animation:ocean-current 18s ease-in-out infinite alternate-reverse}
[data-companion-effect=hologram] #theme-scenery::before{background:radial-gradient(ellipse at 20% 60%,#a8eaff29,transparent 42%),linear-gradient(transparent 44%,#c3a9ff30 48%,transparent 54%);animation:signal-scan 12s ease-in-out infinite alternate}
[data-companion-effect=hologram] #theme-scenery::after{animation:signal-grid 20s linear infinite;mask-image:radial-gradient(ellipse at 50% 50%,black,transparent 75%)}
[data-companion-effect=copper] #theme-scenery::before{background:radial-gradient(ellipse at 12% 75%,#ddaa8730,transparent 42%),radial-gradient(ellipse at 90% 25%,#ad91b129,transparent 42%);animation:copper-light 18s ease-in-out infinite alternate}
[data-companion-effect=copper] #theme-scenery::after{background:repeating-linear-gradient(135deg,transparent 0 45px,#e0ba971a 46px,transparent 48px 90px);mask-image:linear-gradient(transparent,black 45%,transparent);animation:copper-light 23s ease-in-out infinite alternate-reverse}
[data-companion-effect=concert] #theme-scenery::before{background:conic-gradient(from 200deg at 50% 0%,transparent 0 25deg,#8bfff52e 29deg,transparent 34deg 80deg,#ff9dd02a 85deg,transparent 93deg);animation:concert-sweep 12s ease-in-out infinite alternate}
[data-companion-effect=concert] #theme-scenery::after{background:repeating-linear-gradient(0deg,transparent 0 35px,#7cfff013 36px,transparent 38px 72px);mask-image:linear-gradient(transparent 40%,black);animation:signal-grid 20s linear infinite}
@keyframes moon-glow{from{transform:translate(-3%,1%) scale(1)}to{transform:translate(4%,-3%) scale(1.12)}}
@keyframes lunar-orbit{from{transform:rotate(-8deg) scale(.98)}to{transform:rotate(10deg) scale(1.08)}}
@keyframes aurora-curtain{from{transform:translate(-7%,2%) skewX(-8deg)}to{transform:translate(7%,-4%) skewX(8deg)}}
@keyframes heat-drift{from{transform:translate(-3%,7%) scale(.98)}to{transform:translate(4%,-7%) scale(1.12)}}
@keyframes sakura-light{from{transform:translate(-4%,-4%) rotate(-3deg)}to{transform:translate(5%,5%) rotate(3deg)}}
@keyframes ocean-current{from{transform:translate(-7%,-2%) skewX(-3deg)}to{transform:translate(7%,4%) skewX(4deg)}}
@keyframes signal-scan{from{transform:translateY(-9%)}to{transform:translateY(9%)}}
@keyframes signal-grid{from{transform:translateY(-36px)}to{transform:translateY(36px)}}
@keyframes copper-light{from{transform:translate(-3%,2%)}to{transform:translate(4%,-3%)}}
@keyframes concert-sweep{from{transform:rotate(-9deg) scale(1.05)}to{transform:rotate(9deg) scale(1.05)}}
.is-welcome #theme-scenery{inset:0;opacity:1}
.avatar-stage::before{content:"";position:absolute;inset:-4%;z-index:0;pointer-events:none;background-image:url('/wp-content/uploads/2026/10/theme-scenes-atlas-v1.png');background-size:400% 208%;background-position:var(--scene-x) var(--scene-y);opacity:.60;mask-image:linear-gradient(transparent,black 35%);border-radius:inherit;animation:companion-scene-drift 13s ease-in-out infinite alternate}
.avatar-halo{z-index:1}
.theme-preview{background-image:url('/wp-content/uploads/2026/10/theme-scenes-atlas-v1.png');background-size:400% 208%;background-position:var(--scene-x) var(--scene-y);background-repeat:no-repeat}
.theme-preview i{display:none}.theme-check{z-index:1}
/* The existing Vocaloid character illustration stays intact above its stage. */
[data-theme=vocaloid] #theme-scenery{opacity:.60}
[data-vfx=soft] #theme-scenery{opacity:.35}
[data-vfx=off] #theme-scenery,[data-vfx=off] .avatar-stage::before{display:none}
.reduce-motion :is(#theme-scenery,.avatar-stage)::before,.motion-paused :is(#theme-scenery,.avatar-stage)::before,[data-performance=light] :is(#theme-scenery,.avatar-stage)::before,[data-vfx=soft] :is(#theme-scenery,.avatar-stage)::before,.reduce-motion #theme-scenery::after,.motion-paused #theme-scenery::after,[data-performance=light] #theme-scenery::after,[data-vfx=soft] #theme-scenery::after{animation:none!important;will-change:auto}
@keyframes theme-flow-light{from{transform:translate(-4%,2%) rotate(-5deg) scale(1)}to{transform:translate(6%,-5%) rotate(7deg) scale(1.15)}}
@keyframes theme-flow-ribbons{from{transform:translate(-6%,-4%) rotate(-3deg);opacity:.35}to{transform:translate(8%,6%) rotate(4deg);opacity:.8}}
@keyframes companion-scene-drift{from{transform:translate(-6px,4px)}to{transform:translate(6px,-4px)}}
@media(max-width:790px){#theme-scenery{inset:0;opacity:.55}#theme-scenery::after{display:none}.avatar-stage::before{opacity:.48}}
@media(prefers-reduced-motion:reduce){#theme-scenery::before,#theme-scenery::after,.avatar-stage::before{animation:none!important;will-change:auto}#theme-scenery{transition:none}}

/* Illustrated ornaments sit INSIDE the working surfaces, not behind opaque
   panels. Eight isolated transparent atlas cells follow the selected theme. */
#copiloto #messages{position:relative;isolation:isolate}
#copiloto #messages::before,:is(.page-heading,.intro,.community>.section-heading)::after{
 content:"";position:absolute;pointer-events:none;background-image:url('/wp-content/uploads/2026/10/theme-ornaments-atlas-v1.png');
 background-size:400% 200%;background-position:var(--scene-x) var(--scene-y);background-repeat:no-repeat;
 width:240px;aspect-ratio:1;z-index:0;opacity:.62;animation:ornament-float 9s ease-in-out infinite alternate;
}
#copiloto #messages::before{right:12px;bottom:14px;width:min(62%,210px)}
#copiloto #messages .msg{position:relative;z-index:1}
:is(.page-heading,.intro,.community>.section-heading){position:relative;isolation:isolate}
:is(.page-heading,.intro,.community>.section-heading)::after{
 right:16px;top:50%;translate:0 -50%;width:clamp(130px,18vw,175px);opacity:.38;
 mask-image:linear-gradient(90deg,transparent,black 32%);animation-duration:13s;
}
:is(.page-heading,.intro,.community>.section-heading)>*{position:relative;z-index:1}
.intro::after{right:14%;opacity:.22}
[data-theme=ocean] #copiloto #messages::before{animation-name:ornament-current}
[data-theme=sakura] #copiloto #messages::before{animation-duration:12s}
[data-theme=terminal] #copiloto #messages::before{animation-name:ornament-hover;animation-duration:7s}
[data-vfx=off] #messages::before,[data-vfx=off] :is(.page-heading,.intro,.community>.section-heading)::after{display:none}
[data-vfx=soft] #copiloto #messages::before{opacity:.35}
:is(.reduce-motion,.motion-paused,[data-performance=light],[data-vfx=soft]) #messages::before,
:is(.reduce-motion,.motion-paused,[data-performance=light],[data-vfx=soft]) :is(.page-heading,.intro,.community>.section-heading)::after{animation:none!important}
@keyframes ornament-float{from{transform:translate(-4px,5px) rotate(-2deg)}to{transform:translate(5px,-7px) rotate(2deg)}}
@keyframes ornament-current{from{transform:translate(-9px,3px) rotate(-2deg)}to{transform:translate(9px,-4px) rotate(2deg)}}
@keyframes ornament-hover{from{transform:translateY(4px)}to{transform:translateY(-7px)}}
@media(max-width:790px){
 #copiloto #messages::before{right:4px;width:min(65%,190px);opacity:.5}
 :is(.page-heading,.community>.section-heading)::after{width:125px;right:0;opacity:.20}
 .intro::after{display:none}
}
@media(prefers-reduced-motion:reduce){#messages::before,:is(.page-heading,.intro,.community>.section-heading)::after{animation:none!important}}

/* Racing replaces Sakura in place, including its atlas cells and petals.
   Separate garage framing / track light trails, never a pink scenery fallback. */
[data-theme=sakura] .avatar-stage::before,.preview-sakura{
 background-image:repeating-linear-gradient(90deg,transparent 0 42px,#c5d7ec0d 43px 45px,transparent 46px 88px),linear-gradient(140deg,#141b28 30%,#324052 65%,#11151d);
 background-size:auto;background-position:center;opacity:1;mask-image:none;
}
.preview-sakura{border-bottom:4px solid #ff716f}
[data-theme=sakura] #copiloto #messages::before,[data-theme=sakura] :is(.page-heading,.intro,.community>.section-heading)::after{
 background-image:conic-gradient(#ccd6e523 25%,transparent 0 50%,#ccd6e523 0 75%,transparent 0);
 background-size:32px 32px;background-position:center;mask-image:linear-gradient(135deg,transparent,black);border-radius:16px;opacity:.25;animation:none;
}
[data-companion-effect=racing] #theme-scenery::before{
 background:radial-gradient(ellipse at 15% 20%,#ff47422b,transparent 40%),radial-gradient(ellipse at 80% 65%,#73bbff23,transparent 45%);
 animation:theme-flow-light 12s ease-in-out infinite alternate;
}
[data-companion-effect=racing] #theme-scenery::after{
 background:repeating-linear-gradient(110deg,transparent 0 80px,#ff716f21 81px 83px,transparent 84px 180px);
 mask-image:linear-gradient(transparent,black 35%,transparent);animation:racing-trails 4s linear infinite;
}
[data-theme=sakura] .vfx-dust i{height:2px;width:38px;border-radius:2px;rotate:-20deg;background:#ff716f;box-shadow:0 0 10px #ff716f55;animation:racing-sparks 3.5s linear infinite;animation-delay:calc(var(--n)*-.28s)}
[data-theme=sakura] .aurora-ribbons{display:none}
[data-theme=sakura] .world-transition{background:linear-gradient(115deg,transparent 35%,#ff716f30 49%,#11151d80 50%,transparent 66%)}
[data-theme=sakura] .avatar-halo{border-style:dashed;box-shadow:0 0 32px #ff716f18}
@keyframes racing-trails{from{transform:translateX(-60px)}to{transform:translateX(130px)}}
@keyframes racing-sparks{0%{transform:translate(-40px,12px);opacity:0}30%{opacity:.3}100%{transform:translate(130px,-34px);opacity:0}}
[data-vfx=soft][data-theme=sakura] .vfx-dust i{animation:none;opacity:.1}
[data-theme=sakura] .world-heading .world-header::before,[data-theme=sakura].models-ready .world-ribbon .world-scene::before{
 background-image:repeating-linear-gradient(115deg,transparent 0 48px,#ff716f22 49px 51px,transparent 52px 110px),linear-gradient(145deg,#17202e,#25354a);
 background-size:auto;background-position:center;opacity:.35;
}
