/* SaoSystem 3.2 / DS鲸鱼娘 Live2D：单角色，纯 Cubism 画布，兼容触控。 */
.sao-live2d[hidden],.sao-live2d-dialog[hidden],.sao-live2d-reopen[hidden]{display:none!important}
.sao-live2d{position:fixed;z-index:65;right:12px;bottom:max(12px,env(safe-area-inset-bottom));width:306px;height:352px;user-select:none;pointer-events:none;isolation:isolate}
.sao-live2d-stage{position:absolute;right:39px;bottom:0;width:262px;height:340px;pointer-events:auto;touch-action:manipulation}
.sao-live2d-stage canvas{display:block;width:100%;height:100%;filter:drop-shadow(0 8px 10px rgba(2,24,49,.25))}
.sao-live2d:not(.is-ready) canvas{opacity:0}
.sao-live2d-loading{position:absolute;right:30px;bottom:30px;display:block;padding:.35rem .5rem;border:1px solid rgba(136,221,255,.6);border-radius:8px;background:rgba(5,35,70,.85);color:#c2f1ff;font:600 10px/1.5 system-ui;letter-spacing:.1em}
.sao-live2d.is-ready .sao-live2d-loading{display:none}
.sao-live2d-tools{position:absolute;right:0;bottom:25px;display:flex;flex-direction:column;gap:8px;opacity:0;visibility:hidden;transform:translateX(8px);transition:opacity .18s ease,transform .18s ease,visibility .18s;pointer-events:none}
.sao-live2d:hover .sao-live2d-tools,.sao-live2d:focus-within .sao-live2d-tools,.sao-live2d.is-controls-open .sao-live2d-tools{opacity:1;visibility:visible;transform:none;pointer-events:auto}
.sao-live2d-tools button,.sao-live2d-reopen{display:grid;place-items:center;width:39px;height:39px;background:linear-gradient(160deg,#1b5687,#072c52);color:#e1f8ff;border:1px solid #90dafe;clip-path:polygon(21% 0,79% 0,100% 21%,100% 79%,79% 100%,21% 100%,0 79%,0 21%);font-size:17px;font-weight:800;cursor:pointer;box-shadow:0 5px 14px rgba(0,24,52,.23);transition:filter .18s ease,transform .18s ease}
.sao-live2d-tools button:hover,.sao-live2d-reopen:hover{filter:drop-shadow(0 0 7px rgba(76,205,255,.85)) brightness(1.12);transform:translateY(-1px)}
.sao-live2d-tools button:focus-visible,.sao-live2d-reopen:focus-visible,.sao-live2d-compact:focus-visible{outline:2px solid #62cfff;outline-offset:3px}
.sao-live2d-reopen{position:fixed;z-index:65;right:14px;bottom:max(12px,env(safe-area-inset-bottom));pointer-events:auto;width:44px;height:44px}
.sao-live2d-dialog{position:absolute;right:300px;bottom:150px;width:206px;max-width:calc(100vw - 315px);padding:12px 26px 12px 13px;pointer-events:auto;border:1px solid #79c8f2;border-radius:11px;background:rgba(242,251,255,.97);box-shadow:0 8px 25px rgba(0,24,55,.22);color:#153955;font:13px/1.65 system-ui}
.sao-live2d-dialog button{position:absolute;right:5px;top:4px;background:transparent;border:0;color:#255d82;font-size:18px;cursor:pointer}
.sao-live2d-compact{display:none}
@media(max-width:700px){
 .sao-live2d{right:6px;bottom:8px;width:156px;height:205px}
 .sao-live2d-stage{width:120px;height:199px;right:35px}
 .sao-live2d-loading{font-size:8px;right:10px}
 .sao-live2d-tools{bottom:20px;gap:5px}
 .sao-live2d-tools button{width:32px;height:32px;font-size:14px}
 .sao-live2d-dialog{right:145px;bottom:120px;width:156px;max-width:calc(100vw - 160px)}
 .sao-live2d.is-compact{right:8px;bottom:12px;width:50px;height:50px}
 .sao-live2d.is-compact .sao-live2d-stage,.sao-live2d.is-compact .sao-live2d-tools,.sao-live2d.is-compact .sao-live2d-dialog{display:none!important}
 .sao-live2d.is-compact .sao-live2d-compact{display:grid;place-items:center;pointer-events:auto;width:50px;height:50px;border-radius:50%;border:2px solid #87dcff;background:linear-gradient(135deg,#0a345f,#1675a5);box-shadow:0 3px 13px rgba(12,93,161,.36);color:white;font-size:19px;font-weight:800;cursor:pointer}
}
@media(prefers-reduced-motion:reduce){.sao-live2d *{transition:none!important}}
/* SAO 光环只用于辅助，永不隐藏系统箭头与手型光标。 */
.sao-cursor-aura{position:fixed;z-index:9998;top:0;left:0;width:19px;height:19px;pointer-events:none;opacity:0;border:1px solid rgba(49,166,235,.72);border-radius:5px;box-shadow:0 0 8px rgba(25,164,241,.24);transition:opacity .13s,width .15s,height .15s;will-change:transform}
.sao-cursor-aura.is-visible{opacity:1}.sao-cursor-aura.is-target{width:24px;height:24px;box-shadow:0 0 10px rgba(25,185,251,.4)}
.sao-cursor-aura:before,.sao-cursor-aura:after{content:'';position:absolute;background:rgba(59,181,235,.55)}
.sao-cursor-aura:before{width:5px;height:1px;left:-4px;top:50%}.sao-cursor-aura:after{height:5px;width:1px;left:50%;top:-4px}
.sao-cursor-pulse{position:fixed;z-index:9997;pointer-events:none;transform:translate(-50%,-50%);width:6px;height:6px;border:1px solid #39bcff;border-radius:50%;animation:sao-click-pulse .4s ease-out forwards}
@keyframes sao-click-pulse{to{width:32px;height:32px;opacity:0}}
@media(pointer:coarse),(prefers-reduced-motion:reduce){.sao-cursor-aura,.sao-cursor-pulse{display:none!important}}
