:root{--ink:#273656;--muted:#78829c;--mint:#36bcb6;--pink:#e883b4;--blue:#627bdf;--glass:rgba(255,255,255,.56);--line:rgba(255,255,255,.88);--shadow:0 16px 45px #647eae12}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:#edf1fc;font-family:"Microsoft YaHei UI","PingFang SC","Segoe UI",sans-serif;font-size:17px;min-height:100vh}button,input{font:inherit}a{color:inherit;text-decoration:none}button{cursor:pointer}button,a{touch-action:manipulation}header,main{max-width:1440px;margin:auto;padding-left:5%;padding-right:5%}.ambient{position:fixed;inset:0;z-index:-1;background:linear-gradient(140deg,#eaf8f9 0%,#eff0ff 45%,#fbedf7 100%);overflow:hidden}.ambient span{position:absolute;border-radius:50%;filter:blur(65px);opacity:.65}.ambient span:nth-child(1){width:600px;height:600px;background:#b6e5df;top:-240px;left:-150px}.ambient span:nth-child(2){width:550px;height:550px;background:#e6c8f3;right:-200px;top:200px}.ambient span:nth-child(3){width:500px;height:400px;background:#ffd9d9;left:25%;bottom:-200px}header{height:88px;display:flex;align-items:center;justify-content:space-between;gap:18px;border-bottom:1px solid #ffffff8c}.brand{display:flex;align-items:center;gap:9px;font-weight:850;letter-spacing:-.5px;font-size:28px}.brand b{font-size:20px;font-weight:650}.brand-icon{display:grid;place-items:center;width:35px;height:35px;border-radius:12px;background:#ffffff99;color:#51a9b9;border:1px solid white;box-shadow:0 3px 15px #889abd12}.header-tags{display:flex;gap:16px;align-items:center}.local{font-size:13px;color:var(--muted)}.quota-pill{border:1px solid #fff;background:#ffffff88;border-radius:30px;padding:10px 16px;font-size:13px;color:#586787;backdrop-filter:blur(20px)}.intro{text-align:center;padding:48px 0 38px}.eyebrow{font-size:12px;color:#7f92b5;letter-spacing:2.5px;margin:0 0 15px}.eyebrow span{display:inline-block;width:6px;height:6px;background:#6bc8c1;border-radius:100%;margin-right:9px;vertical-align:middle}h1{font-size:clamp(34px,3.5vw,48px);font-weight:800;letter-spacing:0;margin:0 0 17px;line-height:1.45}h1 em{font-style:normal;background:linear-gradient(100deg,#429eb1,#6a78d7,#c371ad);background-clip:text;color:transparent}.mobile-break{display:none}.lead{font-size:16px;line-height:1.9;color:var(--muted);margin:0}.intro-chips{display:flex;justify-content:center;gap:10px;margin-top:19px}.intro-chips span{font-size:12px;padding:6px 11px;border:1px solid #ffffffb3;border-radius:30px;background:#ffffff48;color:#8190a8}.workspace{display:grid;grid-template-columns:minmax(300px,360px) minmax(0,1fr);gap:24px;align-items:start}.panel{background:var(--glass);border:1px solid var(--line);border-radius:24px;padding:24px;backdrop-filter:blur(28px) saturate(1.2);-webkit-backdrop-filter:blur(28px) saturate(1.2);box-shadow:var(--shadow),inset 0 1px 0 #fff}.section-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:20px}.section-title h2{display:flex;align-items:center;gap:9px;font-size:18px;font-weight:700;margin:0}.section-title>span{font-size:12px;letter-spacing:1.4px;color:#92a0b7}.step{font-size:12px;letter-spacing:.5px;width:26px;height:26px;display:grid;place-items:center;color:#7e97bf;background:#e6edf790;border:1px solid #fff;border-radius:8px}.dropzone{min-height:220px;display:flex;align-items:center;justify-content:center;position:relative;border:1px dashed #adc1dc;border-radius:16px;text-align:center;background:#f9fcff65;overflow:hidden;cursor:pointer;transition:background .2s,transform .2s,border-color .2s}.dropzone:hover,.dropzone.dragging{border-color:#65babb;background:#e4f7f480;transform:translateY(-1px)}.upload-mark{width:54px;height:54px;display:grid;place-items:center;margin:0 auto 15px;border-radius:19px;background:linear-gradient(140deg,#ffffffd9,#cce8ef91);border:1px solid white;box-shadow:0 5px 15px #7399a912;font-size:35px;color:#80aabc}.dropzone strong{font-size:18px;font-weight:650}.dropzone p{font-size:13px;color:var(--muted);margin:9px 0}.dropzone small{font-size:12px;color:#96a1b6}#input-preview{display:block;width:100%;height:240px;object-fit:contain}#replace{position:absolute;bottom:12px;background:#ffffffbd;backdrop-filter:blur(16px);padding:7px 14px;border-radius:30px;border:1px solid white;color:#5a718c;font-size:12px}.meta{font-size:13px;color:var(--muted);line-height:1.85;overflow-wrap:anywhere}.style-choice{margin-top:20px}.style-bubble{width:100%;display:flex;align-items:center;gap:10px;border:1px solid white;background:linear-gradient(120deg,#e9f8ffb8,#eeeaffc7);backdrop-filter:blur(18px);border-radius:40px;padding:12px 16px;color:#526a96;box-shadow:0 4px 16px #899ddc12;font-size:14px;font-weight:650}.style-bubble:hover{background:#ffffffc4}.style-bubble #selected-style-name{font-size:12px;color:#8b97b1;margin-left:auto;font-weight:400}.chevron{font-size:19px;transition:transform .2s}.style-bubble[aria-expanded=false] .chevron{transform:rotate(-90deg)}.style-list{margin-top:13px;display:grid;gap:10px}.style-card{padding:0;border:2px solid #81bfcc;border-radius:16px;overflow:hidden;background:#ffffff8c;text-align:left;color:var(--ink);box-shadow:0 6px 22px #779abb12;transition:transform .2s,border-color .2s}.style-card:hover{transform:translateY(-2px);border-color:#50b2bd}.style-image{position:relative;height:146px;overflow:hidden}.style-image img{width:100%;height:100%;object-fit:cover;object-position:50% 34%;display:block;transition:transform .35s}.style-card:hover img{transform:scale(1.025)}.selected-check{position:absolute;right:10px;top:10px;display:grid;place-items:center;width:23px;height:23px;background:#ffffffe0;border-radius:50%;color:#40a2a3;box-shadow:0 2px 10px #25365622}.style-copy{padding:12px 14px}.style-copy strong{font-size:16px;font-weight:700}.style-copy p{font-size:12px;line-height:1.7;color:var(--muted);margin:5px 0 0}.quota-detail{display:flex;justify-content:space-between;gap:10px;margin-top:22px;font-size:12px;color:#8490a7}.quota-dots{display:flex;gap:6px;margin:10px 0 17px}.quota-dots span{height:4px;flex:1;border-radius:5px;background:#74bfb86b}.quota-dots span.used{background:#9da9bd30}.primary,.secondary{display:inline-flex;justify-content:center;align-items:center;gap:14px;min-height:44px;padding:12px 20px;border-radius:12px;border:1px solid #ffffff70;font-size:14px;font-weight:650;transition:transform .2s,box-shadow .2s,filter .2s}.primary{background:linear-gradient(110deg,#71b7cc,#8e8cdd);color:white;box-shadow:0 8px 20px #8b9edc35}.primary:hover{filter:brightness(1.06);transform:translateY(-1px);box-shadow:0 10px 23px #8b9edc55}.primary:active,.secondary:active{transform:translateY(1px)}.primary:disabled{background:#bdc7d6;box-shadow:none;cursor:not-allowed;transform:none;filter:none}.generate{width:100%;justify-content:center;gap:24px;font-size:17px;min-height:49px}.secondary{background:#ffffff8c;color:#647593}.secondary:hover{background:#fff}.cost-note{font-size:12px;color:#96a1b5;text-align:center;margin:12px 0 0}.result-panel{min-height:720px}.result-empty{min-height:620px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;background:radial-gradient(ellipse at center,#e0e8ff50,transparent 66%)}.portal{position:relative;width:170px;height:170px;display:grid;place-items:center;margin-bottom:32px;border-radius:50%;background:radial-gradient(circle,#ffffff9e,#d0e8fc42 60%,transparent 62%)}.portal>span{font-size:78px;color:#99aedf;text-shadow:0 5px 30px white}.portal-orbit{position:absolute;inset:6px;border:1px solid #ffffffd9;border-radius:38%;transform:rotate(35deg);box-shadow:inset 0 0 25px #ffffff80,0 5px 25px #bccce82e}.portal:after{content:'';position:absolute;width:200px;height:62px;border:1px solid #adbee154;border-radius:50%;transform:rotate(-28deg)}.portal i{font-size:28px;position:absolute;top:5px;right:7px;font-style:normal;color:#d1a8d5}.portal b{font-size:29px;position:absolute;bottom:10px;left:5px;color:#8ec4c0;font-weight:400}.empty-badge{font-size:12px;letter-spacing:2px;color:#a0aec7}.result-empty h3{font-size:22px;font-weight:650;margin:17px 0 8px}.result-empty p{font-size:14px;color:#8b97ae;line-height:1.9}.empty-flow{display:flex;gap:15px;align-items:center;margin-top:15px;font-size:12px;color:#8c9bb4}.empty-flow span{padding:6px 12px;background:#ffffff62;border:1px solid #ffffffab;border-radius:20px}.empty-flow i{font-style:normal;color:#b3bfd4}.task-heading{display:flex;justify-content:space-between;align-items:center}.status{font-size:13px;padding:7px 12px;border-radius:20px;background:#e8f4f5;color:#52999d;border:1px solid white}#task-message{font-size:13px;line-height:1.85;color:var(--muted);min-height:20px}.busy{height:4px;background:#e2e9f4;border-radius:4px;overflow:hidden;margin:30px 0}.busy span{display:block;background:#8da7d9;width:28%;height:100%;animation:waiting 1.8s ease-in-out infinite}.view-tabs{display:flex;justify-content:flex-end;gap:5px;margin:18px 0 14px}.view-tabs button{font-size:12px;color:#8a96ae;border:1px solid transparent;background:transparent;border-radius:20px;padding:8px 13px}.view-tabs .selected{background:#ffffffa6;border-color:white;color:#6a7eaa;box-shadow:0 3px 12px #8b9ac311}.side-view{display:grid;grid-template-columns:1fr 1fr;gap:10px}figure{margin:0;border-radius:12px;overflow:hidden;background:#ffffff65;border:1px solid white}figure img{width:100%;height:440px;object-fit:contain;display:block}figcaption{font-size:12px;color:var(--muted);text-align:center;padding:10px}.slider-canvas{position:relative;height:480px;border:1px solid #fff;border-radius:16px;overflow:hidden;background:repeating-conic-gradient(#eef0f5 0% 25%,#e6eaf2 0% 50%) 50%/18px 18px}.slider-canvas>img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}#slide-original{clip-path:inset(0 50% 0 0)}#divider{position:absolute;top:0;bottom:0;left:50%;width:2px;background:white;pointer-events:none;z-index:2;box-shadow:0 0 3px #34466540}#divider>span{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:46px;height:46px;display:flex;align-items:center;justify-content:center;gap:6px;background:#ffffffb8;backdrop-filter:blur(16px);border:1px solid #fff;border-radius:50%;color:#7087aa;font-size:29px;box-shadow:0 4px 18px #26375b26}#divider i{height:14px;width:1px;background:#8ea1ba70}#compare-range{appearance:none;-webkit-appearance:none;position:absolute;inset:0;margin:0;width:100%;height:100%;background:transparent;cursor:ew-resize;z-index:3;touch-action:pan-y}#compare-range::-webkit-slider-runnable-track{background:transparent;height:100%}#compare-range::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:46px;height:46px;background:transparent;position:relative;top:50%;transform:translateY(-50%)}#compare-range::-moz-range-track{background:transparent}#compare-range::-moz-range-thumb{width:46px;height:46px;border:0;background:transparent}#compare-range:focus-visible{outline:0;box-shadow:inset 0 0 0 3px #739fda}.slider-label{position:absolute;top:12px;padding:6px 11px;border-radius:20px;font-size:12px;background:#ffffffa8;backdrop-filter:blur(12px);z-index:4;pointer-events:none;color:#607598;border:1px solid white}.slider-label.left{left:12px}.slider-label.right{right:12px}.slider-hint{text-align:center;font-size:12px;color:#96a4bc;margin:12px 0}.actions{display:flex;gap:10px;flex-wrap:wrap}.actions .primary{flex:1}#output-info{text-align:center}.history-section{margin-top:32px}.history{display:flex;gap:13px;overflow-x:auto;padding-bottom:12px}.history-item{flex:0 0 180px;border:1px solid #fff;border-radius:15px;background:#ffffff5c;backdrop-filter:blur(20px);padding:10px;text-align:left;color:var(--ink);transition:transform .2s,border-color .2s}.history-item:hover{transform:translateY(-2px)}.history-item.active{border-color:#8bbaca;background:#ffffffa8}.history-item img{display:block;width:100%;height:90px;object-fit:cover;border-radius:8px;margin-bottom:10px}.history-item strong{font-size:13px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:600}.history-item small{font-size:12px;color:var(--muted);display:block;margin-top:6px}footer{border-top:1px solid #ffffffb8;margin-top:20px;padding:24px 0 32px;display:flex;justify-content:space-between;align-items:center;gap:20px;font-size:12px;color:#97a1b8;line-height:1.9}footer>span{font-size:12px;letter-spacing:1px;white-space:nowrap}dialog{max-width:460px;width:calc(100% - 32px);padding:30px;border:1px solid white;border-radius:24px;background:#f6f7ffed;backdrop-filter:blur(25px);color:var(--ink);box-shadow:0 30px 90px #3d4c803d}dialog::backdrop{background:#29365155;backdrop-filter:blur(7px)}.dialog-star{display:block;color:#929fd9;font-size:38px}dialog h2{font-size:25px;margin:14px 0}dialog p{font-size:16px;line-height:1.9}dialog .actions{margin-top:24px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#344565ed;backdrop-filter:blur(20px);color:white;border:1px solid #ffffff59;border-radius:12px;padding:14px 22px;max-width:90vw;font-size:14px;z-index:20;line-height:1.7}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}[hidden]{display:none!important}:focus-visible{outline:3px solid #739fda;outline-offset:3px}@keyframes waiting{from{transform:translateX(-100%)}to{transform:translateX(470%)}}@media(max-width:850px){.workspace{grid-template-columns:1fr}.input-panel{max-width:100%}.style-image{height:180px}.result-panel{min-height:480px}.result-empty{min-height:390px}.intro{padding:36px 0}.slider-canvas{height:430px}}@media(max-width:540px){header{height:75px;padding-left:6%;padding-right:6%}.brand{font-size:23px;gap:6px}.brand b{font-size:16px}.brand-icon{width:29px;height:29px;font-size:22px}.local{display:none}.quota-pill{font-size:12px;padding:8px 10px}main{padding:0 5%}.mobile-break{display:block}h1{font-size:35px}.intro{padding:32px 0}.panel{padding:19px;border-radius:21px}.lead{font-size:14px}.intro-chips{gap:7px}.intro-chips span{font-size:12px;padding:6px 9px}.style-image{height:150px}.quota-detail{font-size:12px}.slider-canvas{height:365px}figure img{height:260px}.section-title>span{font-size:12px}.result-empty h3{font-size:19px}footer{display:block}footer>span{display:block;margin-top:16px}.history-item{flex-basis:155px}dialog{padding:24px}}@supports not (backdrop-filter:blur(1px)){.panel,.history-item,.style-card,dialog{background:#f5f7ff}}@media(prefers-reduced-motion:reduce){:root:not(.motion-on) *,:root:not(.motion-on) *:before,:root:not(.motion-on) *:after{transition:none!important;animation:none!important}.busy span{width:100%;opacity:.5}}
/* Scene-backed glass workspace, v3. */
body{background:#eef2fc}.ambient{position:absolute;height:1100px;bottom:auto;background:linear-gradient(180deg,rgba(239,244,253,.38) 0%,rgba(239,244,253,.3) 24%,rgba(238,242,252,.62) 48%,#eef2fc 94%),url('/assets/anime-background.png') center top/cover no-repeat}.ambient span{display:none}header{border-color:#ffffff8c}.local{color:#506079;background:#ffffff70;backdrop-filter:blur(12px);border:1px solid #ffffff8c;padding:8px 13px;border-radius:25px}.intro{padding-top:48px;padding-bottom:42px;text-shadow:0 1px 16px #ffffffb0}.intro .eyebrow{color:#405367;font-weight:650}.intro h1{color:#233550}.intro .lead{color:#425774}.intro h1 em{background:linear-gradient(100deg,#386a87,#5764a1);background-clip:text}.intro-chips span{background:#ffffff7a;color:#586d83}.panel{background:rgba(250,252,255,.69)}.workspace{align-items:stretch}.input-panel,.result-panel{display:flex;flex-direction:column}.result-panel{min-height:0}.generation-controls{margin-top:auto;padding-top:21px}.quota-card{border:1px solid #ffffffed;background:linear-gradient(120deg,#e5f8f7c9,#eceaffc4);border-radius:17px;padding:15px 16px;box-shadow:inset 0 1px 0 #fff,0 5px 18px #6b90b011;backdrop-filter:blur(20px);margin-bottom:15px}.quota-heading{display:flex;justify-content:space-between;gap:8px;align-items:center;font-size:13px;font-weight:650;color:#597592}.quota-reset{font-size:12px;font-weight:400;color:#8290a9}.quota-value{display:flex;align-items:baseline;gap:9px;margin-top:8px}.quota-value strong{font-size:42px;font-weight:750;line-height:1;color:#4c8ca5}.quota-value>span{font-size:14px;color:#7e8ea8}.quota-card p{font-size:12px;color:#8292a6;margin:8px 0}.quota-card .quota-dots{margin-bottom:0;margin-top:10px}.quota-card.exhausted{background:linear-gradient(120deg,#fff0edb0,#f6e9f8cb)}.quota-card.exhausted strong{color:#b57880}.choose-action{margin-left:auto;color:#7d90ab;font-size:12px;font-weight:400}.selected-style-heading{font-size:12px;color:#7d8aa2;margin:15px 0 9px}.selected-style .style-card{display:block;border-color:#9ac2cf}.selected-style .style-card:hover{transform:none}.selected-style .style-image{height:145px}.selected-style .style-card:hover img{transform:none}.result-empty{flex:1;min-height:520px}#task-view{display:flex;flex-direction:column;flex:1}#comparison{display:flex;flex-direction:column;flex:1}#slider-view{display:flex;flex-direction:column;flex:1}.slider-canvas{flex:1;min-height:430px;height:auto}#comparison>.actions{margin-top:auto}.side-view{flex:1}figure{display:flex;flex-direction:column}figure img{flex:1;min-height:330px;height:100%;max-height:650px}#style-dialog{width:min(720px,calc(100% - 32px));max-width:720px;background:rgba(244,250,255,.87);backdrop-filter:blur(38px) saturate(1.2);border:1px solid #fffffff5;box-shadow:0 25px 110px #2d486455,inset 0 1px 0 white;padding:28px;max-height:85vh;overflow:auto}#style-dialog::backdrop{background:#28365369;backdrop-filter:blur(9px)}.style-dialog-header{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}.style-dialog-header .eyebrow{font-size:12px;margin-bottom:10px}.style-dialog-header h2{font-size:29px;margin:0;font-weight:750}.close-dialog{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;border:1px solid white;background:#ffffff8a;font-size:30px;color:#7185a0;flex-shrink:0}.close-dialog:hover{background:white}.style-dialog-intro{font-size:14px!important;color:#7a8ca5;margin:15px 0 22px}#style-dialog .style-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:0}#style-dialog .style-card{border-color:transparent}#style-dialog .style-card[aria-checked=true]{border-color:#71bacb}#style-dialog .style-image{height:175px}#style-dialog .style-copy{min-height:85px}#style-dialog .style-card:hover{border-color:#82bac7}@media(max-width:850px){.workspace{align-items:start}.generation-controls{margin-top:0}.result-empty{min-height:390px}.slider-canvas{height:430px;min-height:430px;flex:auto}.side-view figure img{min-height:280px;height:350px}.ambient{height:1050px;background-position:center top}.result-panel{min-height:480px}}@media(max-width:540px){.intro{padding:35px 0}.ambient{height:850px;background-size:auto 850px;background-position:58% top}.quota-heading{font-size:13px}.quota-reset{font-size:12px}.quota-value strong{font-size:43px}.slider-canvas{height:365px;min-height:365px}.side-view figure img{height:270px;min-height:200px}.local{display:block;font-size:12px;padding:7px 9px}#style-dialog{padding:22px}#style-dialog .style-list{grid-template-columns:1fr}#style-dialog .style-image{height:175px}#style-dialog .style-copy{min-height:0}.style-dialog-header h2{font-size:26px}}

/* Current generic reference focuses on face/shoulders; no image file crop. */
.style-image img{object-position:50% 80%}

/* Readability pass: larger comparison targets and consistent text rhythm. */
body{font-size:16px;line-height:1.65}.meta,.style-copy p{font-size:14px;line-height:1.8}.view-tabs{gap:10px;margin-bottom:18px}.view-tabs button{font-size:16px;font-weight:650;min-width:128px;min-height:48px;padding:11px 20px}.view-tabs .selected{box-shadow:0 4px 15px #798bba24;border-color:#b8cfec}.primary,.secondary{font-size:16px;min-height:48px}.generation-controls .generate{font-size:18px;min-height:54px}.section-title h2{font-size:19px}.style-bubble{font-size:16px;min-height:49px}.quota-heading{font-size:15px}.quota-reset{font-size:12px}.quota-card p{font-size:14px}.quota-value strong{font-size:42px}.quota-value>span{font-size:15px}.history-item{flex-basis:205px}.history-item strong{font-size:14px}.history-item small{font-size:12px;line-height:1.7}.style-dialog-intro{font-size:15px!important}.slider-label{font-size:13px}.slider-hint{font-size:13px}.selected-style-heading{font-size:14px}.cost-note{font-size:12px}.intro .lead{font-size:16px}.intro h1{line-height:1.5}footer{font-size:12px}#style-dialog .style-copy{min-height:100px}.quota-heading{flex-wrap:wrap;row-gap:4px}@media(max-width:540px){.view-tabs button{min-width:0;flex:1;font-size:15px;padding:11px 14px}.view-tabs{justify-content:stretch}.section-title h2{font-size:18px}.style-bubble{font-size:15px}.choose-action{font-size:12px}.meta,.style-copy p{font-size:14px}.intro .lead{font-size:15px}.intro h1{font-size:32px}.brand{font-size:20px}.brand b{font-size:15px}.intro-chips{flex-wrap:wrap}.quota-reset{font-size:12px}.slider-label{font-size:12px}.slider-hint{font-size:12px}.style-dialog-header h2{font-size:24px}#style-dialog .style-list{grid-template-columns:1fr}.quota-value strong{font-size:42px}.ambient{background-position:center top;background-size:auto 850px}}
/* A smaller centered scene, full-width glass navigation, playful motion. */
.nav-bar{width:100%;position:relative;z-index:5;background:rgba(255,255,255,.48);border-bottom:1px solid rgba(255,255,255,.84);backdrop-filter:blur(26px) saturate(1.2);-webkit-backdrop-filter:blur(26px) saturate(1.2);box-shadow:0 4px 25px #7988aa0b}.nav-bar header{border:0;background:transparent;height:90px}.ambient{position:absolute;inset:16px auto auto 50%;transform:translateX(-50%);width:min(1000px,76vw);height:auto;aspect-ratio:1192/671;background:linear-gradient(90deg,#eef2fc 0%,transparent 10%,transparent 90%,#eef2fc 100%),url('/assets/anime-background.png') center/100% 100% no-repeat;mask-image:linear-gradient(180deg,transparent 0%,#000 6%,#000 48%,transparent 100%);-webkit-mask-image:linear-gradient(180deg,transparent 0%,#000 6%,#000 48%,transparent 100%);opacity:.92}.intro{padding:42px 0 38px}.intro .animated-headline{font-size:clamp(40px,5.6vw,76px);line-height:1.45;font-weight:850;margin:0 0 20px;letter-spacing:-1px;text-shadow:none}.headline-group{display:inline-block;white-space:nowrap}.headline-letter{display:inline-block;color:#4e659e;background:linear-gradient(105deg,#288393,#6358a8,#aa527d,#be6961,#288393);background-size:360% 100%;background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;animation:headline-hop 4.4s ease-in-out infinite,headline-color 11s linear infinite;transform-origin:50% 80%;filter:drop-shadow(0 2px 7px #ffffffb3)}.intro .lead{color:#4e6380}.image-bubble{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:6px 16px;border-radius:30px;font-size:14px;font-weight:650;line-height:1.5;border:1px solid #fff;backdrop-filter:blur(12px)}.original-bubble{background:#e4edf4d9;color:#6b7d96;box-shadow:0 3px 12px #8a9cac13}.anime-bubble{background:#e8e2ffd9;color:#77649c;box-shadow:0 3px 12px #9a89c323}.slider-label.right.anime-bubble{background:#e7ddffe0;color:#78629b}.side-view figcaption{padding:12px;text-align:center;background:transparent}.generation-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;flex:1;min-height:490px;padding:35px 20px;text-align:center;border-radius:20px;background:radial-gradient(ellipse at 50% 45%,#e8e7ff75,transparent 66%);overflow:hidden}.loading-art{position:relative;width:260px;height:240px;margin-bottom:12px}.loading-paper{position:absolute;right:14px;top:45px;width:110px;height:140px;border:2px solid #fff;background:#ffffffb8;border-radius:12px;box-shadow:0 9px 24px #97abd72b;transform:rotate(12deg);padding:23px 17px}.loading-paper span{display:block;height:11px;margin:12px 0;background:#bdd8e8;border-radius:12px;transform-origin:left;animation:paint-stroke 2.8s ease-in-out infinite}.loading-paper span:nth-child(2){width:78%;background:#d7c4e8;animation-delay:.25s}.loading-paper span:nth-child(3){width:53%;background:#efc6c9;animation-delay:.5s}.mochi{position:absolute;left:38px;top:76px;width:134px;height:112px;border:2px solid white;background:linear-gradient(150deg,#ffffff,#e0effa);border-radius:48% 48% 42% 42%;box-shadow:inset 0 -9px 0 #b5d8ee4a,0 10px 25px #8fa6d338;animation:mochi-float 2.8s ease-in-out infinite}.mochi-ear{position:absolute;top:-15px;width:30px;height:39px;background:#e4f1fa;border:2px solid #fff;border-radius:85% 85% 20% 20%;z-index:-1}.ear-left{left:12px;transform:rotate(-25deg)}.ear-right{right:12px;transform:rotate(25deg)}.mochi-face{position:absolute;inset:0}.eye{position:absolute;top:43px;width:10px;height:15px;border-radius:50%;background:#64799b;animation:mochi-blink 4.8s infinite;transform-origin:center}.eye-left{left:35px}.eye-right{right:35px}.eye:after{content:'';position:absolute;top:2px;right:2px;width:3px;height:4px;border-radius:50%;background:white}.cheek{position:absolute;top:64px;width:22px;height:10px;border-radius:50%;background:#f2bccc8c}.cheek-left{left:15px}.cheek-right{right:15px}.mochi-mouth{position:absolute;top:64px;left:58px;width:15px;height:9px;border-bottom:2px solid #8f91b4;border-radius:0 0 50% 50%}.mochi-brush{position:absolute;right:-10px;top:43px;width:12px;height:82px;border-radius:8px;background:linear-gradient(180deg,#f0acc2 0 23%,#e9d8c7 23% 31%,#8aa9ce 31%);border:1px solid #fff;transform:rotate(29deg);transform-origin:50% 83%;animation:brush-wave 1.4s ease-in-out infinite}.mochi-brush:before{content:'';position:absolute;left:-1px;top:-15px;width:12px;height:23px;background:#cc98c4;border:1px solid white;border-radius:75% 12% 40% 40%;transform:rotate(8deg)}.mochi-shadow{position:absolute;left:43px;top:206px;width:127px;height:17px;border-radius:50%;background:#9cb4d72c;filter:blur(3px);animation:shadow-breathe 2.8s ease-in-out infinite}.loading-star{position:absolute;color:#b59bce;font-size:28px;animation:star-dance 3s ease-in-out infinite}.star-one{left:16px;top:27px}.star-two{right:11px;top:6px;color:#9abccc;font-size:34px;animation-delay:.7s}.star-three{right:23px;bottom:12px;color:#e2b1c9;font-size:21px;animation-delay:1.3s}.generation-loading h3{margin:8px 0;font-size:22px;font-weight:700;color:#697ca0}.generation-loading>p{font-size:15px;line-height:1.8;color:#8290aa;margin:6px 0 20px}.loading-dots{display:inline-flex;gap:3px;margin-left:5px}.loading-dots i{font-style:normal;animation:loading-dot 1.5s ease-in-out infinite}.loading-dots i:nth-child(2){animation-delay:.18s}.loading-dots i:nth-child(3){animation-delay:.36s}.loading-reassurance{font-size:12px;color:#8fa0b5;background:#ffffff82;padding:8px 16px;border-radius:22px;border:1px solid white}@keyframes headline-hop{0%,45%,100%{transform:translateY(0) rotate(0)}12%{transform:translateY(-7px) rotate(-1.5deg)}24%{transform:translateY(0) rotate(0)}32%{transform:translateY(-3px) rotate(.8deg)}}@keyframes headline-color{from{background-position:0% 50%}to{background-position:360% 50%}}@keyframes mochi-float{0%,100%{transform:translateY(0) rotate(-3deg)}50%{transform:translateY(-13px) rotate(3deg)}}@keyframes mochi-blink{0%,42%,46%,100%{transform:scaleY(1)}44%{transform:scaleY(.1)}}@keyframes brush-wave{0%,100%{transform:rotate(20deg)}50%{transform:rotate(42deg)}}@keyframes star-dance{0%,100%{transform:translateY(0) rotate(-10deg);opacity:.55}50%{transform:translateY(-9px) rotate(12deg);opacity:1}}@keyframes paint-stroke{0%,15%{transform:scaleX(.2);opacity:.4}55%,100%{transform:scaleX(1);opacity:1}}@keyframes shadow-breathe{0%,100%{transform:scaleX(1);opacity:.8}50%{transform:scaleX(.75);opacity:.45}}@keyframes loading-dot{0%,100%{opacity:.3;transform:translateY(0)}50%{opacity:1;transform:translateY(-3px)}}@media(max-width:850px){.ambient{width:94vw;top:50px}.intro .animated-headline{font-size:clamp(36px,6vw,58px)}.generation-loading{min-height:420px}}@media(max-width:540px){.nav-bar header{height:78px}.ambient{width:100%;top:64px;aspect-ratio:1192/671;background-size:100% 100%;opacity:.8}.intro{padding:34px 0 30px}.intro .animated-headline{font-size:clamp(32px,8.6vw,40px);letter-spacing:-.6px;line-height:1.55}.generation-loading{min-height:395px;padding:25px 8px}.loading-art{transform:scale(.9);margin-bottom:0}.generation-loading h3{font-size:18px}.generation-loading>p{font-size:14px}.image-bubble{font-size:13px;padding:6px 12px}.loading-reassurance{font-size:12px}}@media(prefers-reduced-motion:reduce){:root:not(.motion-on) .headline-letter,:root:not(.motion-on) .generation-loading *{animation:none!important;transition:none!important}:root:not(.motion-on) .headline-letter{background-position:20% 50%;transform:none}:root:not(.motion-on) .mochi{transform:none}:root:not(.motion-on) .loading-paper span{transform:scaleX(1)}}

.letter-0{animation-delay:0.000s,0.00s}
.letter-1{animation-delay:0.065s,-0.45s}
.letter-2{animation-delay:0.130s,-0.90s}
.letter-3{animation-delay:0.195s,-1.35s}
.letter-4{animation-delay:0.260s,-1.80s}
.letter-5{animation-delay:0.325s,-2.25s}
.letter-6{animation-delay:0.390s,-2.70s}
.letter-7{animation-delay:0.455s,-3.15s}
.letter-8{animation-delay:0.520s,-3.60s}
.letter-9{animation-delay:0.585s,-4.05s}
.letter-10{animation-delay:0.650s,-4.50s}
.letter-11{animation-delay:0.715s,-4.95s}
.letter-12{animation-delay:0.780s,-5.40s}

.motion-toggle{border:1px solid #ffffffbd;background:#ffffff70;color:#5a7192;border-radius:24px;padding:8px 14px;font-size:13px;min-height:36px;backdrop-filter:blur(12px)}.motion-toggle:hover{background:#ffffffbf}.motion-off *,.motion-off *:before,.motion-off *:after{animation:none!important;transition:none!important}@media(max-width:540px){.header-tags{gap:7px}.motion-toggle{font-size:12px;padding:7px 10px}.header-tags .local{display:none}}

/* REQ-009: diffuse wallpaper underlay and vivid RGB title. */
body{isolation:isolate}.ambient-glass{position:absolute;z-index:-2;inset:0 0 auto;height:1150px;overflow:hidden;pointer-events:none;background:#eef2fc}.ambient-glass:before{content:'';position:absolute;inset:-75px;background:url('/assets/anime-background.png') center top/cover no-repeat;filter:blur(65px) saturate(.88);transform:scale(1.08);opacity:.55}.ambient-glass:after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,#eef2fc0d 0%,#eef2fc47 50%,#eef2fc 100%)}.ambient{z-index:-1}.headline-letter{background-image:linear-gradient(105deg,#009dff,#1648ff,#bd15ed,#ff1744,#ff6d00,#00bdc5,#009dff);filter:drop-shadow(0 1px 5px #ffffffeb) drop-shadow(0 0 8px #39aaff36);animation-duration:4.4s,8s}.wish-gif{display:block;width:min(100%,500px);height:auto;aspect-ratio:1088/720;object-fit:contain;border-radius:20px;border:2px solid #ffffffd9;box-shadow:0 14px 40px #718cb431;margin:8px auto 26px}.generation-loading .wish-caption{font-size:22px;line-height:1.65;margin:0 0 22px;color:#657ca4}.generation-loading{padding:32px 18px}@media(max-width:540px){.ambient-glass{height:1000px}.ambient-glass:before{filter:blur(45px) saturate(.85);opacity:.48}.wish-gif{border-radius:14px;margin-bottom:22px}.generation-loading .wish-caption{font-size:18px}.generation-loading{padding:24px 8px;min-height:360px}}
/* Room poster: larger scene, quieter background, readable phrase-level motion. */
/* Current background and headline readability: whole phrases, never rainbow glyphs. */
.ambient{inset:0 auto auto 50%;width:min(1800px,100vw);height:1400px;aspect-ratio:auto;background:url('/assets/room-poster.jpg') center top/100% auto no-repeat;opacity:.34;mask-image:linear-gradient(180deg,#000 0%,#000 40%,transparent 100%);-webkit-mask-image:linear-gradient(180deg,#000 0%,#000 40%,transparent 100%)}
.ambient-glass{height:1500px}.ambient-glass:before{background-image:url('/assets/room-poster.jpg');background-position:center 32%;opacity:.22;filter:blur(70px) saturate(.75)}
.intro{position:relative;isolation:isolate;padding-top:54px;padding-bottom:40px}.intro:before{content:'';position:absolute;z-index:-1;inset:20px -3% 8px;pointer-events:none;background:radial-gradient(ellipse at 50% 45%,#f8fbfff5 0%,#f8fbffde 38%,#f8fbff70 65%,transparent 80%)}
.intro .animated-headline{font-size:clamp(38px,4.5vw,66px);line-height:1.4;letter-spacing:0;font-weight:850;margin-bottom:20px;color:#20395e;text-wrap:balance}
.headline-anchor{color:#20395e;text-shadow:0 2px 0 #fff9}.headline-accent{background:linear-gradient(105deg,#0864bf 0%,#433db0 35%,#a62669 70%,#0864bf 100%);background-size:220% 100%;background-clip:text;-webkit-background-clip:text;color:transparent;-webkit-text-fill-color:transparent;filter:none;animation:phrase-color 14s ease-in-out infinite,phrase-float 5s ease-in-out infinite}
.intro .lead{color:#405675;font-size:17px;font-weight:500;line-height:1.9}.intro-chips span{color:#526986;background:#ffffffab;border-color:#fff}
@keyframes phrase-color{0%,100%{background-position:0% 50%}50%{background-position:100% 50%}}
@keyframes phrase-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-2px)}}
@media(max-width:850px){.ambient{width:125vw;height:1250px;opacity:.30}.intro .animated-headline{font-size:clamp(34px,5.6vw,48px)}}
@media(max-width:540px){.ambient{width:155vw;height:1000px;top:0;opacity:.27;background-size:100% auto}.ambient-glass{height:1150px}.ambient-glass:before{opacity:.19;filter:blur(45px) saturate(.75)}.intro{padding:32px 0}.intro:before{inset:6px -5% 0}.intro .animated-headline{font-size:clamp(29px,8.3vw,37px);line-height:1.5;letter-spacing:0;margin-bottom:16px}.intro .lead{font-size:15px}.admin-summary strong{font-size:16px}.admin-summary article{padding:15px 8px}}
@media(prefers-reduced-motion:reduce){:root:not(.motion-on) .headline-accent{animation:none;transform:none}}
/* Zoom the background paint without widening the page on small screens. */
.ambient{left:0;transform:none;width:100%;background-size:100% auto}
@media(max-width:850px){.ambient{width:100%;background-size:125% auto}}
@media(max-width:540px){.ambient{width:100%;background-size:155% auto}}
/* high-end-visual-design: concentric glass shells and transform-only springs. */
@font-face{font-family:'Anime Title';src:url('/assets/fonts/anime-title.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}
.intro .animated-headline.cute-title{font-family:'Anime Title','Microsoft YaHei UI',sans-serif;font-size:clamp(40px,4.8vw,72px);font-weight:400;line-height:1.45;letter-spacing:.025em}
.cute-word{white-space:nowrap}.title-glyph{position:relative;display:inline-block;color:#215788;-webkit-text-fill-color:currentColor;transform-origin:50% 85%;text-shadow:0 2px 0 #ffffffb5;animation:cute-hop 7s cubic-bezier(.22,.8,.32,1) infinite}
.cute-word:nth-child(2) .title-glyph{color:#4f418e}.title-glyph:after{content:attr(data-glyph);position:absolute;inset:0;color:#ab356d;-webkit-text-fill-color:currentColor;text-shadow:none;opacity:0;pointer-events:none;animation:cute-color-wave 7s cubic-bezier(.32,.72,0,1) infinite}
@keyframes cute-hop{0%,28%,100%{transform:translateY(0) rotate(0)}8%{transform:translateY(-5px) rotate(-2deg)}16%{transform:translateY(1px) rotate(1deg)}22%{transform:translateY(-1px) rotate(0)}}
@keyframes cute-color-wave{0%,30%,100%{opacity:0}8%,17%{opacity:1}}
.view-tabs.liquid-switch{position:relative;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;isolation:isolate;width:min(100%,366px);margin:18px 0 22px auto;padding:6px;border-radius:999px;border:1px solid #ffffffdb;background:linear-gradient(145deg,#dce7f159,#fff8 48%,#d6def361);box-shadow:inset 0 1px 2px #ffffffed,inset 0 -1px 2px #8699b424,0 8px 26px #5b75a11c;overflow:visible}
.mode-thumb{position:absolute;inset:6px auto 6px 6px;width:calc((100% - 12px)/2);border-radius:999px;border:1px solid #fffffff2;background:linear-gradient(145deg,#ffffffc9,#eaf5ff75 45%,#e3e9ff9c);box-shadow:inset 0 1px 1px #fff,inset 0 -2px 4px #93b9d326,0 3px 12px #718cb42b,0 1px 3px #486c9924;transform:translateX(0);transition:transform 620ms cubic-bezier(.18,1.35,.3,1);pointer-events:none}
.mode-thumb:before{content:'';position:absolute;inset:2px;border:1px solid #ffffffbd;border-radius:inherit;box-shadow:inset 0 0 8px #ffffff65}.mode-glint{position:absolute;inset:0;border-radius:inherit;overflow:hidden}.mode-glint:after{content:'';position:absolute;inset:-50% -15%;background:linear-gradient(115deg,transparent 28%,#fff9 48%,transparent 70%);transform:translateX(-55%) rotate(8deg);opacity:.45;transition:transform 750ms cubic-bezier(.22,1,.36,1),opacity 400ms cubic-bezier(.22,1,.36,1)}
.liquid-switch.show-side .mode-thumb{transform:translateX(100%)}.liquid-switch.show-side .mode-glint:after{transform:translateX(45%) rotate(8deg);opacity:.8}
.view-tabs.liquid-switch button{position:relative;z-index:1;display:flex;justify-content:center;align-items:center;gap:9px;min-width:0;min-height:50px;padding:12px 16px;border:0;border-radius:999px;background:transparent;box-shadow:none;color:#687a95;font-size:16px;font-weight:650;transition:transform 200ms cubic-bezier(.2,.8,.3,1),color 240ms cubic-bezier(.22,1,.36,1)}
.view-tabs.liquid-switch button.selected{background:transparent;border:0;box-shadow:none;color:#244f79}.view-tabs.liquid-switch button:hover{color:#244f79}.view-tabs.liquid-switch button:active{transform:scale(.95)}.view-tabs.liquid-switch button:focus-visible{outline:2px solid #337ea6;outline-offset:3px}
.mode-icon{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.45;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0;transition:transform 360ms cubic-bezier(.2,1.3,.3,1)}.view-tabs.liquid-switch button:hover .mode-icon{transform:translateY(-1px) scale(1.06)}
#divider>span{border:1px solid #fff;background:linear-gradient(135deg,#fff,#e4eefbce);box-shadow:inset 0 0 0 3px #ffffff6b,0 5px 18px #455d8f26;color:#46678d}
@media(max-width:850px){.intro .animated-headline.cute-title{font-size:clamp(35px,6.4vw,52px)}}
@media(max-width:540px){.intro .animated-headline.cute-title{font-size:clamp(30px,8.5vw,37px);letter-spacing:.01em;line-height:1.6}.view-tabs.liquid-switch{width:100%;margin:14px 0 18px;padding:5px}.mode-thumb{inset:5px auto 5px 5px;width:calc((100% - 10px)/2)}.view-tabs.liquid-switch button{font-size:14px;gap:7px;padding:11px 8px;min-height:48px}.mode-icon{width:19px;height:19px}}
@media(prefers-reduced-motion:reduce){:root:not(.motion-on) .liquid-switch .mode-thumb,:root:not(.motion-on) .liquid-switch .mode-glint:after,:root:not(.motion-on) .liquid-switch button,:root:not(.motion-on) .liquid-switch .mode-icon{transition:none}:root:not(.motion-on) .title-glyph,:root:not(.motion-on) .title-glyph:after{animation:none}}
.glyph-0,.glyph-0:after{animation-delay:-7.000s}
.glyph-1,.glyph-1:after{animation-delay:-6.915s}
.glyph-2,.glyph-2:after{animation-delay:-6.830s}
.glyph-3,.glyph-3:after{animation-delay:-6.745s}
.glyph-4,.glyph-4:after{animation-delay:-6.660s}
.glyph-5,.glyph-5:after{animation-delay:-6.575s}
.glyph-6,.glyph-6:after{animation-delay:-6.490s}
.glyph-7,.glyph-7:after{animation-delay:-6.405s}
.glyph-8,.glyph-8:after{animation-delay:-6.320s}
.glyph-9,.glyph-9:after{animation-delay:-6.235s}
.glyph-10,.glyph-10:after{animation-delay:-6.150s}
.glyph-11,.glyph-11:after{animation-delay:-6.065s}
.glyph-12,.glyph-12:after{animation-delay:-5.980s}
/* The glass material stays on the small sticky switch, not the scrolling images. */
.view-tabs.liquid-switch{position:sticky;top:12px;z-index:2;backdrop-filter:blur(18px) saturate(1.55);-webkit-backdrop-filter:blur(18px) saturate(1.55)}
@media(prefers-reduced-transparency:reduce){.view-tabs.liquid-switch,.mode-thumb{background:#f4f8ff;backdrop-filter:none;-webkit-backdrop-filter:none}}

.compare-toolbar{position:relative;flex:none;padding:1px 0;isolation:isolate}

/* SVG geometry avoids the multiplication glyph baseline offset. */
#close-style-dialog{padding:0;line-height:1;display:grid;place-items:center}#close-style-dialog svg{display:block;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
