/* 选角界面“创建人物”：原客户端 create_box_right（257×395）按 --create-scale 缩放，控件按原图坐标叠放。 */
.character-panel.is-creating .character-slots,.character-panel.is-creating .character-info,.character-panel.is-creating .character-bar,.character-panel.is-creating .character-detail{visibility:hidden}
/* 横屏：人物预览和框作为一组在屏幕水平居中，预览宽度、间距都随框的比例缩放。 */
.create-panel{position:absolute;inset:0;z-index:9;--create-scale:1;--create-box-w:calc(257px * var(--create-scale));--create-model-w:calc(var(--create-box-w) * 1.25);--create-gap:calc(24px * var(--create-scale));
  --create-left:calc(50% - (var(--create-model-w) + var(--create-gap) + var(--create-box-w)) / 2);color:#f8e6af;font-family:SimSun,serif}
.create-panel[hidden]{display:none}
.create-stage{position:absolute;left:var(--create-left);width:var(--create-model-w);top:4%;bottom:4%;min-width:0}
.create-model{position:absolute;left:0;right:0;top:0;bottom:118px;pointer-events:none}
.create-model canvas{display:block;width:100%;height:100%}
.create-genders{position:absolute;left:50%;bottom:72px;transform:translateX(-50%);display:flex;gap:10px}
.create-gender{width:64px;height:28px;padding:0;border:1px solid #8a6a2c;border-radius:3px;background:#24170cd9;color:#d9c18a;font:14px SimSun,serif;letter-spacing:4px;cursor:var(--client-cursor)}
.create-gender[aria-checked=true]{border-color:#f0c860;color:#fff3c8;background:linear-gradient(#6b4317,#3a230d);box-shadow:0 0 10px #ffb84a88,inset 0 0 0 1px #ffe8a855}
.create-gender:not(:disabled):hover{filter:brightness(1.2)}
.create-gender:focus-visible{outline:1px dotted #f5d85a;outline-offset:2px}
.create-caption{position:absolute;left:0;right:0;bottom:0;height:64px;text-align:center;text-shadow:0 1px 3px #000,0 0 6px #000}
.create-job-name{display:block;font-size:18px;line-height:26px;color:#ffe2a0;letter-spacing:2px}
.create-job-note{margin:4px auto 0;max-width:30em;font-size:13px;line-height:18px;color:#f1dfb4}
.create-box{position:absolute;left:calc(var(--create-left) + var(--create-model-w) + var(--create-gap));top:50%;width:257px;height:395px;transform:translateY(-50%) scale(var(--create-scale));transform-origin:left center}
.create-frame{position:absolute;left:0;top:0;width:257px;height:395px;pointer-events:none;user-select:none}
.create-box button{position:absolute;margin:0;padding:0;border:0;background:transparent;cursor:var(--client-cursor)}
.create-box button:disabled{cursor:default}
.create-title{position:absolute;left:35px;top:9px;width:188px;height:26px;margin:0;line-height:26px;text-align:center;font:bold 14px SimSun,serif;letter-spacing:4px;color:#f5d98a;text-shadow:0 1px 2px #000}
.create-close{left:226px;top:3px;width:19px;height:19px;border-radius:50%}
.create-close:not(:disabled):hover,.create-close:focus-visible{box-shadow:0 0 6px 2px #ffd27a99}
.create-name{position:absolute;left:116px;top:93px;width:109px;height:15px;box-sizing:border-box;margin:0;padding:0 3px;border:0;background:transparent;color:#fff8de;font:12px/15px SimSun,serif;outline:none}
.create-name::placeholder{color:#a88d63}
.create-name:focus{box-shadow:0 0 0 1px #f0c86088}
.create-check{left:52px;top:119px;width:153px;height:17px;border-radius:8px}
.create-check:not(:disabled):hover,.create-check:focus-visible,.create-confirm:not(:disabled):hover,.create-confirm:focus-visible,.create-cancel:not(:disabled):hover,.create-cancel:focus-visible{background:radial-gradient(closest-side,#ffd77a66,transparent);outline:none}
.create-check:not(:disabled):active,.create-confirm:not(:disabled):active,.create-cancel:not(:disabled):active{background:radial-gradient(closest-side,#ffb84a99,transparent)}
.create-row{position:absolute;left:116px;width:110px;height:15px}
.create-row .create-step{top:0;width:15px;height:15px;border-radius:50%}
.create-prev{left:0}.create-next{right:0}
.create-step::after{content:'';position:absolute;left:2px;top:2px;width:10px;height:11px;opacity:0;background:center/10px 11px no-repeat}
.create-prev::after{background-image:url('assets/original/create_arrow_left.png')}
.create-next::after{background-image:url('assets/original/create_arrow_right.png')}
.create-step:not(:disabled):hover::after,.create-step:focus-visible::after{opacity:1}
.create-step:not(:disabled):active::after{transform:translateY(1px)}
.create-step:disabled{opacity:.45}
.create-step:focus-visible{outline:none;box-shadow:0 0 5px 1px #ffd27a}
.create-value{position:absolute;left:16px;right:16px;top:0;height:15px;display:flex;align-items:center;justify-content:center;gap:4px;font:12px/15px SimSun,serif;color:#fbe9bd;white-space:nowrap;overflow:hidden}
.create-swatch{display:inline-block;width:9px;height:9px;border:1px solid #e6c98a}
.create-message{position:absolute;left:20px;right:20px;top:291px;height:28px;margin:0;display:flex;align-items:center;justify-content:center;text-align:center;font:12px/14px SimSun,serif;color:#e8d4a2}
.create-message[data-kind=error]{color:#ff9a7a}.create-message[data-kind=ok]{color:#9ef0a8}.create-message[data-kind=pending]{color:#ffe08a}
.create-confirm{left:70px;top:348px;width:42px;height:20px;border-radius:10px}
.create-cancel{left:152px;top:348px;width:42px;height:20px;border-radius:10px}
.create-panel[data-busy=true] .create-box{cursor:progress}
/* 竖屏手机：预览在上，框在下居中。 */
.create-panel.is-portrait .create-stage{left:8px;right:8px;width:auto;top:max(6px,env(safe-area-inset-top));bottom:calc(395px * var(--create-scale) + max(26px,var(--status-space,0px)) + 10px + env(safe-area-inset-bottom))}
.create-panel.is-portrait .create-model{bottom:76px}
.create-panel.is-portrait .create-genders{bottom:44px}
.create-panel.is-portrait .create-caption{height:40px}
.create-panel.is-portrait .create-job-name{font-size:15px;line-height:20px}
.create-panel.is-portrait .create-job-note{font-size:11px;line-height:15px;margin-top:2px}
.create-panel.is-portrait .create-box{right:auto;left:50%;top:auto;bottom:calc(max(26px,var(--status-space,0px)) + env(safe-area-inset-bottom));transform:translateX(-50%) scale(var(--create-scale));transform-origin:bottom center}
/* 横屏矮屏：说明文字缩小。 */
@media(max-height:430px){.create-model{bottom:84px}.create-genders{bottom:50px}.create-caption{height:44px}.create-job-name{font-size:14px;line-height:20px}.create-job-note{font-size:11px;line-height:14px}}
@media(prefers-reduced-motion:reduce){.create-step:not(:disabled):active::after{transform:none}}
