/* ============================================================
   Ready for Cat v2 · 样式
   舞台 16:9 等比居中；所有尺寸用 cqw（舞台宽度的 1%）
   ============================================================ */
*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%;overflow:hidden;background:#2c2621}
body{font-family:"PingFang SC","Hiragino Sans GB","Microsoft YaHei",-apple-system,sans-serif;color:#4a3f35;-webkit-font-smoothing:antialiased}
button{font-family:inherit;cursor:pointer;border:none;background:none;color:inherit}
button:focus-visible{outline:3px solid #e9a76a;outline-offset:2px}
img{display:block}

#viewport{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;background:radial-gradient(circle at 50% 40%,#3a332b,#211d19)}
#stage{position:relative;width:min(100vw,177.7778vh);height:min(56.25vw,100vh);overflow:hidden;background:#fdf3e2;
  container-type:inline-size;box-shadow:0 24px 90px rgba(0,0,0,.5);font-size:1cqw}

#scene-layer,#cat-layer,#hud,#fx,#panel-layer,#fullscreen{position:absolute;inset:0}
#scene-layer{z-index:1;overflow:hidden}
#cat-layer{z-index:2;pointer-events:none}
#hud{z-index:5;pointer-events:none}
#fx{z-index:7;pointer-events:none}
#panel-layer{z-index:9;pointer-events:none}
#fullscreen{z-index:12;pointer-events:none;display:none}
#stage.mode-fullscreen #fullscreen{display:block;pointer-events:auto}
#stage.mode-fullscreen #hud{display:none}
/* 性能 12-03：全屏页（选角/闪屏/加载/地图/结尾）本身不透明铺满，底层场景根本看不见。
   原来这里挂 filter:blur(3px) 会让 1600×900 大图+整套 SVG 每帧做高斯模糊合成，
   点男女、翻闪屏时卡顿的主因之一。直接停掉底层渲染，视觉无差别。 */
#stage.mode-fullscreen #scene-layer,#stage.mode-fullscreen #cat-layer{visibility:hidden}

.room-svg,.asset-img{width:100%;height:100%;object-fit:cover;display:block}
.asset-fallback{width:100%;height:100%}
.scene-art{position:absolute;inset:0}

/* ---- 真实美术素材层：图片铺底，SVG 交互元素半透明叠在上面 ----
   底图来自已审核的「画布全量素材包」，互动判定坐标一律不动。 */
.real-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  display:block;z-index:0;pointer-events:none;user-select:none}
.scene-art .scene-svg{position:absolute;inset:0;z-index:1}
/* 房间：真实图完全打底，原 SVG 收起（物件按钮在 scene-art 外，照常可点） */
.scene-art.real-room .scene-svg{opacity:0}
/* closeup 放大场景：真实图打底，SVG 的脏污点等交互元素保留在图上 */
.scene-art.has-real .scene-svg{opacity:.001}
.scene-art.has-real .scene-svg .cu-dirt,
.scene-art.has-real .scene-svg .obj{opacity:.9}

/* 时间光线：只改同一张家的光线，不换画面 */
#stage.time-morning #scene-layer{filter:saturate(1.08) brightness(1.06)}
#stage.time-night #scene-layer{filter:brightness(.5) saturate(.7) hue-rotate(-12deg)}
#stage.time-night #cat-layer{filter:brightness(.62)}
#stage.time-dusk #scene-layer{filter:sepia(.18) brightness(.82)}

/* ---------- 场景内可点物件 ---------- */
.obj{position:absolute;z-index:3;border:2px dashed transparent;border-radius:1.6cqw;
  display:flex;align-items:flex-end;justify-content:center;transition:.22s;pointer-events:auto;background:transparent}
.obj .obj-tag{font-size:1.05cqw;padding:.25cqw .9cqw;border-radius:99px;background:rgba(74,63,53,.78);color:#fff;
  opacity:0;transform:translateY(.5cqw);transition:.2s;white-space:nowrap;margin-bottom:.3cqw}
.obj:hover{border-color:rgba(233,167,106,.85);background:rgba(255,241,214,.18)}
.obj:hover .obj-tag,.obj.is-target .obj-tag{opacity:1;transform:none}
.obj.is-target{border-color:#e9a76a;border-style:solid;background:rgba(255,220,160,.16);
  animation:targetPulse 1.7s ease-in-out infinite}
.obj.is-target .obj-tag{background:#c9803f}
.obj.is-done{opacity:.42}
.obj.is-locked{opacity:.5;pointer-events:none}
@keyframes targetPulse{0%,100%{box-shadow:0 0 0 0 rgba(233,167,106,.5)}50%{box-shadow:0 0 0 1.1cqw rgba(233,167,106,0)}}
/* 图里不存在的物件（猫包/沙发/沙发底等）：热区还要给剧情点，但框和标签一律不显示，
   鼠标碰到也干干净净，不要冒出来。 */
.obj.is-bare,.obj.is-bare:hover,.obj.is-bare.is-target{
  border-color:transparent!important;background:transparent!important;
  animation:none!important;box-shadow:none!important}
.obj.is-bare .obj-tag,.obj.is-bare:hover .obj-tag,.obj.is-bare.is-target .obj-tag{display:none!important}
/* M4 到家「点沙发」这一步：沙发虽是隐藏热区，但要画出金色画框引导点击，
   玩家点进去后才切镜头、进沙发底照片与后面的罐罐选择。 */
.obj.is-bare[data-obj="sofa"].is-target{
  border:2px solid #f0b46a!important;background:rgba(255,220,160,.16)!important;
  animation:targetPulse 1.7s ease-in-out infinite!important;
  box-shadow:0 0 0 .35cqw rgba(240,180,106,.35)!important}
.obj.is-bare[data-obj="sofa"].is-target .obj-tag{display:block!important;opacity:1!important;transform:none!important;background:#c9803f!important}
.hint-strip{position:absolute;left:50%;top:9cqw;transform:translateX(-50%);z-index:4;
  background:rgba(74,63,53,.82);color:#fff;padding:.8cqw 2cqw;border-radius:99px;font-size:1.25cqw;
  letter-spacing:.05em;pointer-events:none;white-space:nowrap;box-shadow:0 .6cqw 2cqw rgba(0,0,0,.18)}

/* 咪咪自己在房间里活动 */
#pet{position:absolute;width:11cqw;left:44%;top:58%;transition:left 2.6s ease-in-out,top 2.6s ease-in-out,transform .5s;
  transform:translate(-50%,-50%);filter:drop-shadow(0 .8cqw .8cqw rgba(0,0,0,.18))}
#pet.hidden-pet{opacity:0}
#pet .pet-name{position:absolute;left:50%;bottom:-1.4cqw;transform:translateX(-50%);font-size:.95cqw;
  color:#6d5b49;background:rgba(255,255,255,.78);padding:.1cqw .8cqw;border-radius:99px;white-space:nowrap}

/* ---------- 常驻 HUD ---------- */
#topbar{position:absolute;left:0;right:0;top:0;height:5.4cqw;display:flex;align-items:center;
  padding:0 1.6cqw;gap:1cqw;background:linear-gradient(180deg,rgba(255,248,235,.96),rgba(255,248,235,.72) 70%,rgba(255,248,235,0));
  pointer-events:auto}
.hud-btn{font-size:1.3cqw;padding:.65cqw 1.25cqw;border-radius:99px;background:rgba(255,255,255,.9);
  box-shadow:0 .3cqw 1cqw rgba(120,90,60,.18);color:#6a5540;white-space:nowrap;transition:.2s}
.hud-btn:hover{background:#fff;transform:translateY(-.15cqw)}
.hud-btn.back{font-weight:600}
.hud-btn.back.disabled{opacity:.38;pointer-events:none}
.hud-stats{display:flex;gap:1.2cqw;margin:0 auto;font-size:1.3cqw;font-weight:600;color:#7b6449;
  background:rgba(255,255,255,.72);padding:.55cqw 1.8cqw;border-radius:99px;white-space:nowrap}
#stat-money{color:#b5703a}
#bottombar{position:absolute;left:0;right:0;bottom:0;height:7.6cqw;display:flex;justify-content:center;
  align-items:center;gap:1.6cqw;pointer-events:auto;
  background:linear-gradient(0deg,rgba(255,248,235,.94),rgba(255,248,235,0))}
.dock-btn{width:5.2cqw;height:5.2cqw;border-radius:50%;background:rgba(255,255,255,.94);
  box-shadow:0 .4cqw 1.4cqw rgba(120,90,60,.2);font-size:2cqw;display:flex;flex-direction:column;
  align-items:center;justify-content:center;gap:.1cqw;transition:.2s;position:relative}
.dock-btn em{font-size:.78cqw;font-style:normal;color:#8a745b;white-space:nowrap}
.dock-btn:hover{transform:translateY(-.4cqw);background:#fff}
.dock-btn.has-dot::after{content:'';position:absolute;right:.5cqw;top:.5cqw;width:.9cqw;height:.9cqw;border-radius:50%;background:#e0795c}

/* 领养日：整条底栏用不到，隐藏（背包/任务单/成就/状态/相册） */
#stage.hide-dock #bottombar{display:none}

/* 播放中：← / ⚙ / 底栏隐藏，顶栏只留数字 */
#stage.mode-playing #btn-back,#stage.mode-playing #btn-settings,#stage.mode-playing #bottombar{display:none}
#stage.mode-playing #topbar{background:none;justify-content:center}
#stage.mode-playing .hud-stats{margin:0}

/* ---------- 对话框（《猫逝》式：白色虚线框 + 名字牌 + 说话人） ---------- */
.dialog-wrap{position:absolute;left:4cqw;right:4cqw;bottom:2.6cqw;display:flex;align-items:flex-end;
  gap:1cqw;pointer-events:auto;z-index:3}
.dialog-portrait{width:9.5cqw;flex:none;display:flex;align-items:flex-end;justify-content:center;
  filter:drop-shadow(0 .4cqw .8cqw rgba(0,0,0,.2))}
.dialog-portrait .human{font-size:7cqw;line-height:1}
.dialog-portrait .human-photo{width:7.4cqw;height:7.4cqw;border-radius:50%;object-fit:cover;
  border:.25cqw solid #fff;box-shadow:0 .2cqw .7cqw rgba(80,60,40,.3)}
.dialog-box{position:relative;flex:1;min-height:9.5cqw;padding:2.4cqw 3cqw 2cqw;
  background:rgba(255,255,255,.94);border:.28cqw dashed #c8ab86;border-radius:1.4cqw;
  box-shadow:0 .8cqw 2.4cqw rgba(90,70,50,.22)}
.name-tag{position:absolute;top:-1.5cqw;left:2.2cqw;background:#6f5b47;color:#fff;
  font-size:1.15cqw;font-weight:600;padding:.4cqw 1.4cqw;border-radius:.7cqw .7cqw 0 0;letter-spacing:.06em}
.dialog-text{font-size:1.7cqw;line-height:1.65;min-height:3.2cqw;letter-spacing:.02em;white-space:pre-wrap}
.dialog-text.inner{font-style:italic;color:#7a6855}
.dialog-modes{position:absolute;right:1.4cqw;top:-1.45cqw;display:flex;gap:.5cqw}
.dialog-modes button{font-size:1cqw;padding:.35cqw 1cqw;border-radius:99px;background:#fff;
  box-shadow:0 .2cqw .6cqw rgba(0,0,0,.15);color:#7a6855}
.dialog-modes button.on{background:#e9a76a;color:#fff}
.dialog-next{position:absolute;right:1.8cqw;bottom:1cqw;font-size:1.7cqw;color:#c08a52;animation:blink 1.1s infinite}
/* ---- 人物对话图模式：图铺满舞台，文字叠到图上空白气泡 ----
   牛仔猫=指导NPC / 男女=玩家内心独白 / 医生=医院。气泡在图约左13%–右13%、上69%–下10%。 */
.dialog-wrap .dialog-art{display:none}
.dialog-wrap.with-art{position:absolute;inset:0;left:0;right:0;bottom:0;display:block;pointer-events:none}
.dialog-wrap.with-art .dialog-art{display:block;position:absolute;inset:0;width:100%;height:100%;
  object-fit:cover;z-index:0;pointer-events:none}
.dialog-wrap.with-art .dialog-portrait{display:none}
.dialog-wrap.with-art .dialog-box{position:absolute;left:17%;right:17%;top:70.5%;bottom:11.5%;
  min-height:0;padding:1.4cqw 2cqw;background:transparent;border:none;box-shadow:none;
  display:flex;flex-direction:column;justify-content:center;pointer-events:auto}
.dialog-wrap.with-art .dialog-box .name-tag{top:-2.9cqw;left:1.5cqw;font-size:1.05cqw;
  background:rgba(111,91,71,.82)}
.dialog-wrap.with-art .dialog-box .dialog-text{font-size:1.85cqw;line-height:1.6;
  color:#4a3f35;text-align:left;padding:0 .4cqw;max-height:9cqw;overflow:hidden}
.dialog-wrap.with-art .dialog-box .dialog-text.inner{color:#5a4c3e}
.dialog-wrap.with-art .dialog-modes{top:-2.9cqw;right:1.5cqw}
.dialog-wrap.with-art .dialog-next{right:2cqw;bottom:.4cqw}
/* ---- 皮皮（引导猫）专属：整张图缩小到 ~62% 宽、贴右下角，露出左侧/上方游戏场景，
       不再整屏铺满挡视线。气泡在图内 左13%–右13%、上67%–下10%，文字按此比例叠。 ---- */
.dialog-wrap.with-guide .dialog-art{inset:auto;left:auto;right:1%;bottom:0;
  width:62%;height:auto;aspect-ratio:16/9;object-fit:contain}
/* 气泡相对缩小后的图定位：图左=37%、图宽=62%；气泡左=37%+13%*62%=45%，右=1%+13%*62%=9%
   图上=100%-62%*(9/16)/(9/16)=38%（图按宽度等比，高≈62%*900/1600*... 用容器比例算）
   简化：直接用与图一致的百分比盒子盖住气泡。 */
.dialog-wrap.with-guide .dialog-box{
  left:45.2%;right:9.2%;top:79.6%;bottom:6.4%;padding:1.9cqw 1.6cqw .5cqw}
.dialog-wrap.with-guide .dialog-box .dialog-text{font-size:1.45cqw;line-height:1.45;max-height:6cqw}
.dialog-wrap.with-guide .dialog-box .name-tag{top:.35cqw;left:1.2cqw;font-size:.95cqw}
.dialog-wrap.with-guide .dialog-modes{top:.35cqw;right:1cqw}
.dialog-wrap.with-guide .dialog-modes button{font-size:.85cqw;padding:.3cqw .8cqw}
.dialog-wrap.with-guide .dialog-next{right:9.5cqw;bottom:1cqw}
/* 自动播完一段文字后停在「继续 ▸」等玩家亲手点：切场景/开互动绝不自动发生 */
.dialog-next.waiting{font-size:1.1cqw;bottom:1.2cqw;padding:.35cqw .9cqw;border-radius:99px;
  background:#e9a76a;color:#fff;box-shadow:0 .2cqw .6cqw rgba(0,0,0,.12)}
@keyframes blink{50%{opacity:.25}}
.dialog-tip{font-size:.95cqw;color:#a7937c;margin-top:.5cqw}

/* ---------- 事件层通用 ---------- */
.shade{position:absolute;inset:0;background:rgba(45,36,28,.42);z-index:1;pointer-events:auto}
.center-card{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:4;
  background:#fffaf0;border-radius:1.6cqw;padding:2.6cqw 3cqw;width:52cqw;
  box-shadow:0 1.6cqw 4cqw rgba(0,0,0,.28);pointer-events:auto;text-align:center}
.center-card h3{font-size:2.2cqw;margin-bottom:1.2cqw;color:#8a5f36}
.center-card p{font-size:1.5cqw;line-height:1.8;text-align:left;color:#5c4c3d;margin-bottom:1.4cqw}
.btn-primary{display:inline-block;background:#e9a76a;color:#fff;font-size:1.5cqw;font-weight:600;
  padding:.9cqw 3cqw;border-radius:99px;box-shadow:0 .5cqw 1.2cqw rgba(210,140,70,.35);transition:.2s}
.btn-primary:hover{background:#d8924e;transform:translateY(-.2cqw)}
.btn-ghost{display:inline-block;background:#fff;border:.18cqw solid #dcc3a1;color:#8a7157;
  font-size:1.35cqw;padding:.8cqw 2.4cqw;border-radius:99px;margin-left:1cqw}
.btn-ghost:hover{background:#fdf3e2}

/* 三选一 / 通用选项 */
.choice-stack{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:4;
  width:46cqw;display:flex;flex-direction:column;gap:1.1cqw;pointer-events:auto}
.choice-stack .choice-title{text-align:center;font-size:1.7cqw;color:#fff;text-shadow:0 .2cqw .8cqw rgba(0,0,0,.6);margin-bottom:.6cqw}
.choice-btn{background:rgba(255,250,240,.96);border-radius:1cqw;padding:1.3cqw 2cqw;text-align:left;
  font-size:1.5cqw;box-shadow:0 .6cqw 1.6cqw rgba(0,0,0,.25);transition:.2s;border:.2cqw solid transparent}
.choice-btn:hover{transform:translateX(.8cqw);border-color:#e9a76a;background:#fff}
.choice-btn small{display:block;font-size:1.05cqw;color:#9b8a75;margin-top:.35cqw}

/* 成就弹条 */
.ach-toast{position:absolute;right:2cqw;top:7cqw;z-index:6;background:#fffaf0;border-radius:1cqw;
  padding:1cqw 1.6cqw;display:flex;align-items:center;gap:1cqw;box-shadow:0 .6cqw 2cqw rgba(0,0,0,.25);
  pointer-events:none;animation:toastIn .4s ease,bounceGlow 1.3s ease infinite}
.ach-toast .ic{font-size:2.6cqw}
.ach-toast b{font-size:1.35cqw;color:#a46a32;display:block}
.ach-toast span{font-size:1cqw;color:#8a7965}
@keyframes toastIn{from{transform:translateX(8cqw);opacity:0}}
@keyframes bounceGlow{50%{box-shadow:0 .6cqw 2.6cqw rgba(233,167,106,.7)}}

/* 黑屏时刻转场 */
.blackout{position:absolute;inset:0;z-index:8;background:#1d1a17;display:flex;align-items:center;
  justify-content:center;color:#fff;pointer-events:auto;animation:fadeIn .5s}
.blackout .time-text{font-size:3.2cqw;letter-spacing:.5em;font-weight:300}
.blackout .time-sub{position:absolute;bottom:5cqw;font-size:1.1cqw;color:#9c9187}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}

/* 深夜客厅真实场景：整屏一张照片，盖住房间，不出现任何简笔猫 */
.night-photo{position:absolute;inset:0;z-index:7;background:#101820;cursor:pointer;animation:fadeIn .7s}
.night-photo-img{display:block;width:100%;height:100%;object-fit:cover}
.night-photo-tip{position:absolute;bottom:3cqw;left:0;right:0;text-align:center;color:rgba(255,255,255,.82);
  font-size:1.15cqw;letter-spacing:.2cqw;text-shadow:0 .2cqw .6cqw rgba(0,0,0,.8)}

/* 弹幕 */
.danmu{position:absolute;left:100%;white-space:nowrap;font-size:2cqw;font-weight:700;color:#fff;
  text-shadow:0 .2cqw .8cqw rgba(0,0,0,.7);z-index:5;pointer-events:none;animation:danmuRun 6s linear forwards}
@keyframes danmuRun{to{transform:translateX(-190cqw)}}

/* 手机框 / 聊天 */
.phone{position:absolute;right:4cqw;top:9cqw;width:24cqw;height:37cqw;background:#fffdf8;border:.7cqw solid #4a4038;
  border-radius:2.6cqw;z-index:4;box-shadow:0 1.4cqw 3cqw rgba(0,0,0,.35);pointer-events:auto;overflow:hidden;
  display:flex;flex-direction:column}
.phone-head{height:3cqw;background:#f3e6d2;display:flex;align-items:center;justify-content:center;gap:.5cqw;
  font-size:1.15cqw;font-weight:600;color:#8a7157;border-bottom:.15cqw solid #e2d0b6}
/* 闺蜜/女朋友头像：手机标题、聊天气泡左侧都用同一张 */
.phone-avatar{width:2.1cqw;height:2.1cqw;border-radius:50%;object-fit:cover;border:.12cqw solid #fff;flex:none}
.phone-body{flex:1;min-height:0;padding:1.2cqw 1.2cqw 1.2cqw 4.2cqw;overflow:auto;display:flex;flex-direction:column;gap:.9cqw}
.bubble{position:relative;max-width:80%;font-size:1.25cqw;line-height:1.55;padding:.8cqw 1.2cqw;border-radius:1.1cqw;background:#f1e7d6;color:#5c4c3d}
.bubble-avatar{position:absolute;left:-3.5cqw;top:50%;transform:translateY(-50%);width:2.9cqw;height:2.9cqw;
  border-radius:50%;object-fit:cover;border:.12cqw solid #fff;box-shadow:0 .15cqw .5cqw rgba(80,60,40,.22)}
.bubble.me{align-self:flex-end;background:#d9e9d4}
.bubble.photo-bubble{background:#fff;border:.15cqw solid #e2d0b6;font-size:3cqw;text-align:center;padding:.4cqw}
/* 发出的照片直接以真图气泡呈现，不再用相机 emoji */
.bubble.has-photo{width:13cqw;padding:.45cqw;background:#fff;border:.2cqw solid #e2d0b6;border-radius:1cqw}
.bubble-photo{display:block;width:100%;border-radius:.7cqw;box-shadow:0 .2cqw .5cqw rgba(80,60,40,.12)}
.bubble.bubble-in{animation:bubbleIn .42s cubic-bezier(.2,1.3,.4,1) both}
@keyframes bubbleIn{from{opacity:0;transform:translateY(1.4cqw) scale(.92)}to{opacity:1;transform:none}}
.phone-foot .phone-next:disabled{opacity:.4;cursor:default}
/* 手机聊天底部固定展示的真实场景照片：打开就看到，不用往上翻 */
.phone-bottom-photo{flex:none;height:11cqw;margin:0 1.2cqw .8cqw;border-radius:.8cqw;overflow:hidden;
  border:.15cqw solid #e2d0b6;box-shadow:0 .3cqw .8cqw rgba(0,0,0,.12)}
.phone-bottom-photo img{display:block;width:100%;height:100%;object-fit:cover}
.phone-foot{padding:1cqw;border-top:.15cqw solid #e2d0b6;text-align:center}
.shutter{width:5.2cqw;height:5.2cqw;border-radius:50%;background:#fff;border:.5cqw solid #d8c3a4;
  box-shadow:0 0 0 .25cqw #fff,0 .4cqw 1cqw rgba(0,0,0,.2);font-size:1.6cqw}
.shutter:active{transform:scale(.9)}
.viewfinder{position:absolute;inset:7cqw 8cqw 9cqw 8cqw;border:.35cqw dashed rgba(255,255,255,.9);
  border-radius:1cqw;z-index:3;pointer-events:none}
.viewfinder::before,.viewfinder::after{content:'';position:absolute;width:2cqw;height:2cqw;border:.35cqw solid #fff}
.viewfinder::before{left:-.35cqw;top:-.35cqw;border-right:none;border-bottom:none}
.viewfinder::after{right:-.35cqw;bottom:-.35cqw;border-left:none;border-top:none}

/* ---------- 面板（右侧滑出，场景仍在背后） ---------- */
.panel-shade{position:absolute;inset:0;background:rgba(45,36,28,.35);pointer-events:auto}
.panel-card{position:absolute;right:0;top:0;bottom:0;width:34cqw;background:#fffaf0;
  box-shadow:-1cqw 0 3cqw rgba(0,0,0,.25);pointer-events:auto;padding:2.4cqw;
  display:flex;flex-direction:column;animation:slideIn .28s ease}
@keyframes slideIn{from{transform:translateX(34cqw)}}
.panel-card.no-shade{box-shadow:-1cqw 0 3cqw rgba(0,0,0,.25)}
.panel-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:1.6cqw;
  border-bottom:.15cqw solid #e8d7bd;padding-bottom:1cqw}
.panel-head h3{font-size:2cqw;color:#8a5f36}
.panel-close{font-size:1.8cqw;color:#a08a70;width:2.6cqw;height:2.6cqw;border-radius:50%}
.panel-close:hover{background:#f3e6d2}
.panel-body{flex:1;overflow:auto;font-size:1.3cqw;line-height:1.7}
.panel-note{font-size:1.1cqw;color:#9b8a75;margin-top:.8cqw}
.list-row{display:flex;align-items:center;gap:1cqw;padding:1cqw;border-radius:.9cqw;background:#fdf3e2;margin-bottom:.8cqw}
.list-row .ic{font-size:2.2cqw}
.list-row b{font-size:1.35cqw;display:block}
.list-row small{font-size:1.05cqw;color:#9b8a75}
.list-row.done{opacity:.5;text-decoration:line-through}
.bag-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.9cqw}
.bag-item{background:#fdf3e2;border-radius:.9cqw;padding:1cqw .4cqw;text-align:center;font-size:1cqw;
  cursor:grab;border:.2cqw solid transparent}
.bag-item:hover{border-color:#e9a76a}
.bag-item .ic{font-size:2.6cqw;display:block}
.ach-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1cqw}
.ach-card{background:#fdf3e2;border-radius:1cqw;padding:1.2cqw;text-align:center}
.ach-card.locked{filter:grayscale(1);opacity:.5}
.ach-card .ic{font-size:3cqw;display:block}
.ach-card b{font-size:1.2cqw;display:block;margin-top:.4cqw}
.ach-card small{font-size:.95cqw;color:#9b8a75}
.album-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1cqw}
.album-item{background:#fdf3e2;border-radius:.9cqw;padding:.7cqw;text-align:center;font-size:1cqw}
.album-item .ic{font-size:3.4cqw;display:block}
.album-img{display:block;width:100%;height:9cqw;object-fit:cover;border-radius:.5cqw;margin-bottom:.4cqw}
.setting-row{display:flex;align-items:center;justify-content:space-between;padding:1.2cqw 0;
  border-bottom:.12cqw solid #eee0c9;font-size:1.3cqw}
.seg{display:flex;gap:.4cqw}
.seg button{font-size:1.1cqw;padding:.4cqw 1cqw;border-radius:.6cqw;background:#f1e3cd;color:#8a7157}
.seg button.on{background:#e9a76a;color:#fff}

/* ---------- 全屏独占画面 ---------- */
.full-page{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;
  text-align:center;pointer-events:auto}
.full-page.warm{background:radial-gradient(circle at 50% 35%,#fff7e6,#f3ddba 70%,#e7c9a0)}
.full-page.cream{background:radial-gradient(circle at 50% 30%,#fdf5e6,#efdcc0)}
.full-page.ink{background:#1b1a1a;color:#fff}
.title-big{font-size:5.2cqw;font-weight:800;letter-spacing:.1em;color:#8a5f36}
.title-sub{font-size:1.5cqw;color:#9d8467;margin-top:1cqw;letter-spacing:.06em}
.title-cat{font-size:9cqw;margin-bottom:1cqw}
.menu-btns{display:flex;flex-direction:column;gap:1.2cqw;margin-top:3.4cqw}
.menu-btns .btn-primary{min-width:22cqw}
.disclaimer{position:absolute;bottom:2cqw;font-size:1cqw;color:#a38c70}
.credit{position:absolute;bottom:2cqw;font-size:1cqw;color:#8d8072}

/* ---------- 登录页（新封面 12-03）----------
   封面图自带标题与「开始游戏」按钮，右侧小图标与旧输入框已从图里去掉。
   整页只保留一个框：昵称输入框；其余按钮全部无框透明热区。 */
.full-page.login-page{background-size:cover;background-position:center;background-repeat:no-repeat}
/* 开始游戏：只做透明热区，完全不画框、不画 hover 底 */
.login-start{position:absolute;left:37%;top:79%;width:26%;height:11%;border-radius:99px;
  background:transparent;border:none;outline:none;z-index:2}
.login-start:hover{background:transparent}
/* 唯一保留的框框：给自己起个名字 */
.login-name{position:absolute;left:37.5%;top:68.5%;width:25%;height:6.4%;z-index:2;
  padding:0 3.4cqw 0 4.6cqw;outline:none;border:.18cqw solid rgba(255,255,255,.86);border-radius:99px;
  background:rgba(12,74,96,.42);color:#fff;font-size:1.5cqw;font-weight:600;letter-spacing:.04em;
  text-align:center;box-shadow:inset 0 .1cqw .4cqw rgba(0,0,0,.18)}
.login-name::placeholder{color:rgba(255,255,255,.92)}
/* 回顾之前的旅程：纯文字链接，无框无底 */
/* 移到开始按钮下方，避免和按钮贴边/重叠 */
.login-continue{position:absolute;left:37%;top:91.2%;width:26%;height:4%;z-index:2;
  background:transparent;border:none;outline:none;
  color:#fff;font-size:1.25cqw;font-weight:700;letter-spacing:.08em;
  text-shadow:0 .15cqw .45cqw rgba(6,46,66,.75)}
.login-continue:hover{background:transparent;text-decoration:underline}

/* ---------- 场景加载页（素材图铺满 + 进度条 10%→100%）---------- */
.full-page.scene-load-page{background:#dff1f7}
.scene-load-page .sl-art{position:absolute;inset:0}
.scene-load-page .sl-art img{width:100%;height:100%;object-fit:cover}
.sl-progress{position:absolute;left:34.2%;top:73.6%;width:36.4%;height:4.3%;z-index:2;
  background:transparent;border:none;border-radius:99px;overflow:hidden}
.sl-progress i{display:block;height:76%;width:10%;margin-top:.9cqw;border-radius:99px;
  background:linear-gradient(90deg,#6fc0d8,#3f88a8);transition:width .15s linear}
.sl-pct{position:absolute;left:66%;top:79.5%;width:10%;text-align:center;z-index:2;
  font-size:1.75cqw;font-weight:900;color:#2f6f8f}
/* 无素材回退：进度条居中 */
.full-page.scene-load-page:not(.has-art) .sl-progress{left:32%;top:52%;width:36%;height:5%}
.full-page.scene-load-page:not(.has-art) .sl-pct{left:32%;top:59%;width:36%;text-align:center}

/* ---------- 选角页（真实美术图铺满 · 未选中/女亮环/男亮环三态）----------
   图上自带标题、昵称框、男女立绘与"开始故事"按钮。
   只在昵称框/两个人物/开始按钮上叠透明热区；点人物切背景图实现脚下亮环。 */
.full-page.select-page{background-size:cover;background-position:center;background-repeat:no-repeat}
/* 性能 12-03：选角三态图用 <img> 层叠，切换只动 opacity（GPU 合成，不解码/不重绘）。
   三张图开机已预解码，首次点男女也不再卡。 */
.sel-art{position:absolute;inset:0;pointer-events:none}
.sel-art .sel-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;
  opacity:0;transition:none}
.sel-art .sel-bg-none{opacity:1}
.full-page.select-page[data-gender="female"] .sel-bg-none,
.full-page.select-page[data-gender="female"] .sel-bg-m{opacity:0}
.full-page.select-page[data-gender="female"] .sel-bg-f{opacity:1}
.full-page.select-page[data-gender="male"] .sel-bg-none,
.full-page.select-page[data-gender="male"] .sel-bg-f{opacity:0}
.full-page.select-page[data-gender="male"] .sel-bg-m{opacity:1}
/* 名字只在首页写；这里只读展示，不再是输入框 */
.sel-name-read{position:absolute;left:33.5%;top:21.8%;width:33%;height:6.4%;z-index:2;
  display:flex;align-items:center;justify-content:center;
  color:#7a5a3a;font-size:1.5cqw;font-weight:700;text-align:center;letter-spacing:.06em}
/* 热区完全透明：选中反馈由背景图切换（脚下亮环）提供，不再叠色块 */
.sel-hit{position:absolute;background:transparent;border:none;z-index:2;cursor:pointer}
.sel-hit-f{left:33%;top:31%;width:12%;height:54%}
.sel-hit-m{left:54.5%;top:31%;width:12%;height:54%}
.sel-go{position:absolute;left:41.5%;top:86.5%;width:17%;height:9%;z-index:2;
  background:transparent;border:none;border-radius:99px;cursor:not-allowed}
.sel-go:not([disabled]){cursor:pointer}
.sel-go:not([disabled]):hover{background:rgba(255,255,255,.2)}

/* 选角（无素材回退） */
.select-card{background:#fffaf0;border-radius:2cqw;padding:3cqw 4cqw;width:56cqw;
  box-shadow:0 1.6cqw 4cqw rgba(120,90,60,.25);text-align:center}
.select-card h2{font-size:2.6cqw;color:#8a5f36;margin-bottom:1cqw}
.name-input{width:100%;font-size:1.8cqw;padding:1cqw 1.4cqw;border:.2cqw solid #e2cba9;border-radius:.9cqw;
  background:#fffdf8;text-align:center;color:#5c4c3d;margin:1.4cqw 0 2cqw;outline:none}
.name-input:focus{border-color:#e9a76a}
.gender-row{display:flex;gap:1.6cqw;justify-content:center}
.gender-btn{flex:1;padding:1.6cqw;border-radius:1.2cqw;background:#fdf3e2;border:.25cqw solid transparent;
  font-size:1.7cqw;transition:.2s}
.gender-btn .em{font-size:3.4cqw;display:block;margin-bottom:.5cqw}
.gender-btn:hover{border-color:#e9a76a}
.gender-btn.on{background:#fbe7c8;border-color:#e9a76a;color:#a46a32;font-weight:700}

/* 漫画（3 格） */
.comic-page{position:absolute;inset:0;background:radial-gradient(circle at 50% 30%,#fdf5e6,#e8d6ba);
  display:flex;flex-direction:column;align-items:center;justify-content:center;padding:2cqw 4cqw;pointer-events:auto}
.comic-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.6cqw;width:100%;margin-bottom:2cqw}
.comic-cell{position:relative;height:35cqw;border-radius:1cqw;overflow:hidden;box-shadow:0 .8cqw 2cqw rgba(0,0,0,.2);
  display:flex;flex-direction:column;align-items:center;justify-content:center;padding:1.4cqw;text-align:center;border:.5cqw solid #fff}
.comic-art{font-size:9cqw;margin-bottom:1cqw}
.comic-cap{font-size:1.5cqw;font-weight:700;color:#5c4a39;line-height:1.5}
.comic-cap b{display:inline-block;width:2cqw;height:2cqw;line-height:2cqw;border-radius:50%;background:#a46a32;color:#fff;font-size:1.1cqw}
.comic-sub{font-size:1.15cqw;color:#8b745b;margin-top:.8cqw;line-height:1.6}

/* 序章电影闪屏：整屏纯图片一张张自动闪过，无点击 / 无滚动 / 无进度条 / 无提示 / 无按钮 / 无页码 / 无装饰色。
   整屏只有画面本身，像放电影；放映完自动硬切进正片。
   换帧用 JS 直接切 display，不依赖 CSS 时钟，保证「闪过去」利落可靠。 */
.comic-page.flash-page{background:#000;cursor:default;padding:0;display:block;overflow:hidden;
  align-items:stretch;justify-content:stretch;pointer-events:none}
.flash-stage{position:absolute;inset:0;background:#000 center/cover no-repeat;overflow:hidden}
.flash-frame{position:absolute;inset:0;display:none;opacity:1;
  background-size:cover;background-position:center;background-repeat:no-repeat;
  pointer-events:none}
/* 性能 12-03：will-change 只给当前帧，避免 3~4 张整屏大图同时占着合成层显存 */
/* 当前帧：整屏整张铺满；上一帧直接撤掉，切换是干脆的「闪」，不拖泥带水 */
.flash-frame.on{display:block;will-change:transform}
/* 当前帧极缓推近，像电影镜头而不是静止照片（只影响构图缩放，不影响是否可见）。
   时长跟 JS 的每张停留一致：放慢后镜头也跟着放慢，整张图看清才切走。 */
.flash-frame.cur{animation:flashPush var(--flash-dur,3.2s) cubic-bezier(.2,.7,.3,1) both}
@keyframes flashPush{from{transform:scale(1.07)}to{transform:scale(1)}}
/* 竖版长图：整屏铺满（宽度撑满），镜头缓缓下摇把信息带过一遍，四边不留色 */
.flash-frame.tall{background-size:100% auto}
.flash-frame.tall.cur{animation:flashPan var(--flash-dur,4.8s) linear both}
@keyframes flashPan{from{background-position:50% 0%}to{background-position:50% 100%}}

/* 4 张猫照片 */
.photo-strip{display:flex;gap:1.4cqw;justify-content:center;margin:2cqw 0}
.photo-strip .photo-card{width:17cqw;opacity:0;animation:photoPop .55s ease forwards}
.photo-strip .photo-card:nth-child(1){animation-delay:.15s}
.photo-strip .photo-card:nth-child(2){animation-delay:.5s}
.photo-strip .photo-card:nth-child(3){animation-delay:.85s}
.photo-strip .photo-card:nth-child(4){animation-delay:1.2s}
@keyframes photoPop{0%{opacity:0;transform:translateY(2cqw) rotate(-4deg) scale(.86)}
  70%{opacity:1;transform:translateY(-.4cqw) rotate(1deg) scale(1.03)}
  100%{opacity:1;transform:translateY(0) rotate(0) scale(1)}}
.photo-card{background:#fffaf0;border-radius:.9cqw;padding:.7cqw;box-shadow:0 .6cqw 1.6cqw rgba(0,0,0,.2)}
.photo-inner{position:relative;height:13cqw;border-radius:.5cqw;overflow:hidden;
  background:linear-gradient(140deg,#e9d9bd,#c9b79a);display:flex;align-items:center;justify-content:center}
.photo-blur{font-size:6cqw;filter:blur(.18cqw);opacity:.85}
.photo-noise{position:absolute;inset:0;background:repeating-linear-gradient(45deg,rgba(255,255,255,.08) 0 2px,transparent 2px 6px)}
.photo-cap{font-size:1cqw;color:#7b654e;text-align:center;padding:.5cqw .2cqw .1cqw;line-height:1.4}
.photo-card.big{width:26cqw}
.photo-card.big .photo-inner{height:20cqw}
.photo-card.big .photo-blur{font-size:10cqw}
.photo-inner .photo-real{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
/* 恢复章：手账照片墙，点小图放大成真照片 */
.photo-wall{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:4;pointer-events:auto;
  width:62cqw;padding:2.4cqw 2.6cqw;border-radius:1.6cqw;background:#fff8ec;
  box-shadow:0 1.6cqw 4cqw rgba(60,40,25,.35);text-align:center}
.photo-wall h3{font-size:1.9cqw;color:#8a5f36;margin-bottom:1.6cqw}
.photo-wall h3 small{display:block;font-size:1.1cqw;color:#a0876c;font-weight:400;margin-top:.35cqw}
.wall-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1.4cqw}
.wall-frame{position:relative;display:block;padding:0;border:.35cqw solid #fff;border-bottom-width:1.6cqw;
  background:#fff;box-shadow:0 .5cqw 1.3cqw rgba(90,60,35,.25);border-radius:.3cqw;
  transform:rotate(var(--tilt,0deg));transition:transform .18s,box-shadow .18s;cursor:pointer;overflow:hidden}
.wall-frame:nth-child(1){--tilt:-2deg}.wall-frame:nth-child(2){--tilt:1.5deg}
.wall-frame:nth-child(3){--tilt:-1deg}.wall-frame:nth-child(4){--tilt:2deg}
.wall-frame:hover{transform:rotate(0) translateY(-.6cqw) scale(1.03);box-shadow:0 1cqw 2cqw rgba(90,60,35,.32)}
.wall-frame img{display:block;width:100%;height:13cqw;object-fit:cover}
.wall-frame span{display:block;font-size:1.05cqw;color:#8a6d50;line-height:2}
.wall-frame.seen{border-color:#d9b98d}
.wall-frame.seen span{color:#4f8a63}
/* 恢复章整屏四宫格：一次摆出 4 张恢复照 */
.recovery-gallery{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:4;
  pointer-events:auto;width:82cqw;text-align:center}
.recovery-gallery h3{font-size:2.1cqw;color:#fff;text-shadow:0 .2cqw .8cqw rgba(0,0,0,.7);margin-bottom:.4cqw}
.recovery-gallery h3 small{display:block;font-size:1.15cqw;font-weight:400;color:#f3e4cf;margin-top:.4cqw}
.recovery-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1.4cqw;margin:1.4cqw 0 1.8cqw}
.recovery-tile{position:relative;padding:0;border:.4cqw solid #fffaf0;border-bottom-width:1.8cqw;
  border-radius:.4cqw;background:#fffaf0;overflow:hidden;cursor:zoom-in;
  box-shadow:0 .8cqw 2cqw rgba(0,0,0,.3);transition:.2s}
.recovery-tile:nth-child(1){transform:rotate(-1.5deg)}
.recovery-tile:nth-child(2){transform:rotate(1deg)}
.recovery-tile:nth-child(3){transform:rotate(.8deg)}
.recovery-tile:nth-child(4){transform:rotate(-1deg)}
.recovery-tile:hover{transform:rotate(0) scale(1.03);box-shadow:0 1.2cqw 2.8cqw rgba(0,0,0,.38)}
.recovery-tile img{display:block;width:100%;height:17cqw;object-fit:cover}
.recovery-tile span{display:block;font-size:1.1cqw;color:#8a6d50;line-height:2.2}
/* 恢复章最后：手账本封面 → 翻开 → 盖章 */
.book-cover-card{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:4;
  pointer-events:auto;cursor:pointer;text-align:center}
.book-cover-card img{display:block;width:30cqw;height:auto;margin:0 auto;
  animation:bookFloat 2.6s ease-in-out infinite;filter:drop-shadow(0 1.2cqw 2cqw rgba(50,40,25,.3))}
.book-cover-card p{font-size:1.4cqw;color:#fff8ec;text-shadow:0 .2cqw .8cqw rgba(0,0,0,.6)}
@keyframes bookFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-.7cqw)}}
.book-open{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:4;pointer-events:auto;
  width:52cqw;padding:1.6cqw;border-radius:1.4cqw;background:#fff8ec;
  box-shadow:0 1.6cqw 4cqw rgba(50,35,20,.35);text-align:center}
.book-page{display:block;width:100%;height:38cqw;object-fit:cover;border-radius:.8cqw}
.book-stamp{position:absolute;right:9%;bottom:13%;top:auto;width:8cqw;height:auto;filter:drop-shadow(0 .3cqw .4cqw rgba(90,40,30,.25))}
.book-open-bar{display:flex;align-items:center;justify-content:space-between;gap:1.5cqw;margin-top:1.2cqw}
.book-open-bar span{font-size:1.2cqw;color:#8a6d50}

/* 地图 */
.map-page{position:absolute;inset:0;pointer-events:auto}
.map-bg{position:absolute;inset:0}
.map-places{position:absolute;left:0;right:0;top:26cqw;display:flex;justify-content:center;gap:7cqw}
.place{width:20cqw;padding:1.6cqw 1cqw;border-radius:1.6cqw;background:rgba(255,250,240,.94);
  box-shadow:0 .8cqw 2cqw rgba(120,90,60,.22);text-align:center;transition:.22s;position:relative}
.place.lit{border:.3cqw solid #e9a76a;background:#fff8e9;animation:placeGlow 1.8s ease-in-out infinite}
.place.just-unlocked{animation:unlockFlash 1.35s ease-out 1, placeGlow 1.8s ease-in-out 1.35s infinite}
.place.just-unlocked::after{content:'✦ 新开放';position:absolute;top:-1.6cqw;right:-1cqw;
  background:#d2604c;color:#fff;font-size:.95cqw;padding:.3cqw 1cqw;border-radius:99px;animation:badgeFade 2.6s ease forwards}
@keyframes unlockFlash{0%{transform:scale(.7);filter:brightness(2.2);box-shadow:0 0 0 #ffe6a8}
  45%{transform:scale(1.12);box-shadow:0 0 4cqw 1.5cqw rgba(255,214,130,.9)}
  100%{transform:scale(1);filter:brightness(1);box-shadow:0 0 0 #ffe6a8}}
@keyframes badgeFade{0%,70%{opacity:1}100%{opacity:0}}
.place.lit:hover{transform:translateY(-.8cqw)}
.place.gray{filter:grayscale(1);opacity:.62;cursor:default}
.place .ic{display:flex;justify-content:center}
.place b{font-size:1.7cqw;display:block;margin-top:.6cqw;color:#7b5e3e}
.place small{font-size:1cqw;color:#a08a70}
.place .state{position:absolute;top:-1.1cqw;right:-.6cqw;font-size:1cqw;background:#e9a76a;color:#fff;
  padding:.25cqw .9cqw;border-radius:99px}
@keyframes placeGlow{50%{box-shadow:0 .8cqw 3cqw rgba(233,167,106,.75)}}

/* 真实地点地图：热点直接钉在图上建筑物，点了就进场景 */
.real-map .map-bg img.real-photo{width:100%;height:100%;object-fit:cover;display:block}
.map-spot{position:absolute;transform:translate(-50%,-50%);z-index:3;border:none;background:transparent;
  padding:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.25cqw;
  border-radius:50%;cursor:pointer;transition:filter .25s,transform .2s}
.map-spot .spot-pin{display:flex;align-items:center;justify-content:center;width:4.6cqw;height:4.6cqw;
  border-radius:50%;font-size:2.2cqw;background:rgba(255,250,240,.95);border:.28cqw solid #e9a76a;
  box-shadow:0 .5cqw 1.4cqw rgba(60,45,30,.35)}
.map-spot b{font-size:1.25cqw;color:#6b4e34;background:rgba(255,250,240,.9);
  padding:.2cqw .8cqw;border-radius:99px;white-space:nowrap}
.map-spot .state{font-size:.95cqw;color:#fff;background:#e9a76a;padding:.15cqw .8cqw;border-radius:99px}
.map-spot.lit{animation:spotGlow 1.7s ease-in-out infinite}
.map-spot.lit:hover{transform:translate(-50%,-50%) scale(1.08)}
.map-spot.just-unlocked::after{content:'✦ 新开放';position:absolute;top:-1cqw;left:50%;
  transform:translateX(-50%);background:#d2604c;color:#fff;font-size:.95cqw;
  padding:.25cqw 1cqw;border-radius:99px;white-space:nowrap;animation:badgeFade 2.6s ease forwards}
.map-spot.gray{filter:grayscale(1);opacity:.55;cursor:default}
.map-spot.gray .spot-pin{border-color:#b9b4ab}
@keyframes spotGlow{50%{filter:drop-shadow(0 0 1.4cqw rgba(255,214,130,.95))}}
.map-guide{position:absolute;left:50%;bottom:8cqw;transform:translateX(-50%);display:flex;align-items:flex-end;gap:1cqw;
  width:70cqw;pointer-events:none}

/* 结尾：整屏真实「未完待续」图，点任意处回首页 */
.ending-page{position:absolute;inset:0;background:#0d0f1a;pointer-events:auto;cursor:pointer}
.ending-art{display:block;width:100%;height:100%;object-fit:cover}
/* 结尾收尾的一句话：压在图片底部，半透明底衬保证可读 */
.ending-line{position:absolute;left:0;right:0;bottom:3.5cqw;text-align:center;
  color:#fff;font-size:1.7cqw;letter-spacing:.1em;line-height:1.8;
  text-shadow:0 .2cqw .6cqw rgba(0,0,0,.85);padding:0 8cqw;pointer-events:none}
.night-page{position:absolute;inset:0;pointer-events:auto}
.meteor{animation:meteorRun 3.4s ease-in-out infinite}
@keyframes meteorRun{0%{transform:translate(0,0);opacity:0}20%{opacity:.9}100%{transform:translate(-24cqw,14cqw);opacity:0}}
.ending-text{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
  background:#141312;color:#fff;font-size:2.8cqw;letter-spacing:.16em;line-height:2;text-align:center;
  padding:0 12cqw;pointer-events:auto;animation:fadeIn 1.2s}

/* 领养日海报 & 契约 */
.poster-row{position:absolute;left:0;right:0;top:24cqw;display:flex;justify-content:center;gap:1.6cqw;z-index:3;pointer-events:auto}
.poster-card{width:15cqw;background:#fffaf0;border-radius:1cqw;padding:1cqw .6cqw;text-align:center;
  box-shadow:0 .7cqw 1.8cqw rgba(0,0,0,.22);transition:.2s;cursor:pointer;border:.25cqw solid transparent}
.poster-card:hover{transform:translateY(-.8cqw);border-color:#e9a76a}
.poster-card.chosen{background:#fbe7c8;border-color:#e9a76a}
.poster-top{font-size:1.35cqw;font-weight:700;color:#8a5f36}
.poster-art{height:11cqw;display:flex;align-items:center;justify-content:center}
.poster-tag{font-size:1cqw;color:#a08a70}
.poster-detail{position:absolute;left:50%;top:12cqw;transform:translateX(-50%);z-index:5;width:48cqw;
  background:#fffaf0;border-radius:1.4cqw;padding:1.8cqw 2.2cqw;box-shadow:0 1cqw 3cqw rgba(0,0,0,.3);pointer-events:auto}
.poster-detail h3{font-size:1.9cqw;color:#8a5f36;margin-bottom:.8cqw}
.poster-detail .line{font-size:1.25cqw;line-height:1.6;margin-bottom:.7cqw}
.poster-detail .bug{background:#fbeee0;border-left:.35cqw solid #e09a6a;padding:.8cqw 1cqw;border-radius:.4cqw;color:#9a6037}
.contract{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:5;width:46cqw;
  background:#fffdf5;border:.35cqw solid #d8bd97;border-radius:.8cqw;padding:2.4cqw 3cqw;
  box-shadow:0 1.4cqw 4cqw rgba(0,0,0,.3);pointer-events:auto;text-align:center}
.contract h3{font-size:2.2cqw;letter-spacing:.3em;color:#8a5f36;margin-bottom:1.4cqw}
.contract .terms{font-size:1.25cqw;line-height:2;text-align:left;color:#6a5845;margin-bottom:1.4cqw}
.contract .sign{font-size:1.8cqw;font-family:cursive;color:#a46a32;border-bottom:.2cqw dashed #c9ae87;
  display:inline-block;padding:.3cqw 2cqw;margin-bottom:1.2cqw}
.stamp{position:absolute;right:3cqw;bottom:2cqw;width:9cqw;height:9cqw;border:.5cqw solid #d2604c;border-radius:50%;
  color:#d2604c;font-size:1.3cqw;font-weight:800;display:flex;align-items:center;justify-content:center;
  transform:rotate(-18deg);opacity:0;transition:.35s;pointer-events:none;letter-spacing:.1em}
.stamp.on{opacity:.88;transform:rotate(-18deg) scale(1.1)}

/* 海报「滴滴」吐出：一张张错峰弹入 */
.poster-card.posterPrint{animation:posterPrint .42s cubic-bezier(.2,1.3,.4,1) backwards;animation-delay:calc(var(--i,0)*.11s)}
@keyframes posterPrint{from{opacity:0;transform:translateY(3cqw) rotate(-5deg) scale(.7)}}

/* 详情档案卡：左猫、右长方形信息卡、下方两个选项，一卡呈现不翻转 */
.poster-detail.cat-dossier{width:66cqw;display:grid;grid-template-columns:22cqw 1fr;
  grid-template-areas:"cat info" "act act";gap:1.2cqw 2cqw;padding:1.8cqw 2.2cqw}
.cat-dossier.dossierIn{animation:dossierIn .4s cubic-bezier(.2,1.2,.4,1)}
@keyframes dossierIn{from{opacity:0;transform:translateX(-50%) translateY(2cqw) scale(.92)}}
.dossier-cat{grid-area:cat;display:flex;flex-direction:column;align-items:center;justify-content:center;
  background:linear-gradient(180deg,#fff6e9,#f7e6cc);border-radius:1cqw;padding:1cqw .4cqw}
.dossier-cat svg{max-width:100%;height:auto}
.dossier-catname{font-size:1.5cqw;font-weight:800;color:#8a5f36;margin-top:.4cqw}
.dossier-info{grid-area:info;display:flex;flex-direction:column;gap:.7cqw}
.dossier-info h3{margin:0 0 .2cqw}
.dossier-info .info-line{display:flex;gap:1cqw;font-size:1.2cqw;line-height:1.5;align-items:flex-start}
.dossier-info .info-line b{flex:0 0 5.5cqw;color:#8a5f36}
.dossier-info .info-line span{color:#6a5845}
.dossier-info .info-line.bug{background:#fbeee0;border-left:.35cqw solid #e09a6a;padding:.7cqw 1cqw;border-radius:.4cqw}
.dossier-info .info-line.bug b{color:#b5653a}
.dossier-actions{grid-area:act;display:flex;justify-content:flex-end;gap:1cqw;border-top:.15cqw dashed #e3cdae;padding-top:1cqw}

/* 契约：纸居中、印章作为可拖的实体放在旁边；签名在纸的右下方 */
.contract-stage{position:absolute;inset:0;z-index:5;pointer-events:none}
.contract-stage .contract{pointer-events:auto}
.stamp-hand{position:absolute;pointer-events:auto;z-index:7;width:9.5cqw;height:9.5cqw;border:.5cqw solid #d2604c;
  border-radius:50%;color:#d2604c;background:rgba(255,250,240,.92);display:flex;flex-direction:column;
  align-items:center;justify-content:center;transform:translate(-50%,-50%) rotate(-12deg);cursor:grab;
  box-shadow:0 .6cqw 1.4cqw rgba(0,0,0,.25);touch-action:none;transition:opacity .3s}
.stamp-hand span{font-size:1.25cqw;font-weight:800;letter-spacing:.12em}
.stamp-hand small{font-size:.72cqw;margin-top:.2cqw;color:#a8634f;white-space:nowrap}
.stamp-hand.dragging{cursor:grabbing;transform:translate(-50%,-50%) rotate(-4deg) scale(1.06);box-shadow:0 1cqw 2.4cqw rgba(0,0,0,.3)}
.stamp-hand.over{background:#fff2e6;box-shadow:0 0 0 .35cqw #e9a76a,0 .6cqw 1.4cqw rgba(0,0,0,.25)}
.contract .sign{position:absolute;right:2.4cqw;bottom:2cqw;display:block;margin:0;padding:.2cqw 1.2cqw}
.contract .stamp{right:2.4cqw;bottom:3.8cqw;opacity:0}
/* 契约上先留一圈淡淡的「待盖章」痕迹，盖完才变成实心红章——章不会整个消失 */
.contract .stamp.preview{opacity:.16;border-style:dashed}
.contract .stamp.on{opacity:.88;border-style:solid}

/* 领养册子：皮皮给册子 → 翻开三折页海报 → 点猫看证件卡 → 确认收养 */
.booklet-hand{position:absolute;inset:0;z-index:5;display:flex;flex-direction:column;align-items:center;
  justify-content:center;gap:1.6cqw;pointer-events:auto}
.booklet-cover{position:relative;width:36cqw;height:25cqw;border-radius:1cqw;overflow:hidden;cursor:pointer;
  box-shadow:0 1.6cqw 4cqw rgba(0,0,0,.5);transition:transform .35s,box-shadow .35s;
  background:linear-gradient(140deg,#fff6e6,#e9d4ae);border:.5cqw solid #fffaf0}
.booklet-cover:hover{transform:translateY(-1cqw) rotate(-2deg) scale(1.03);box-shadow:0 2.6cqw 5cqw rgba(0,0,0,.55)}
.booklet-cover-img{width:100%;height:100%;object-fit:cover;filter:brightness(.96)}
.booklet-cover-label{position:absolute;left:0;right:0;top:8%;text-align:center;color:#8a4b2e;
  font-size:3.1cqw;font-weight:900;letter-spacing:.28em;text-shadow:0 .25cqw .8cqw rgba(255,255,255,.95)}
.booklet-cover-label small{display:block;font-size:1.2cqw;letter-spacing:.14em;margin-top:.8cqw;color:#a46a32}
.booklet-cover-paw{position:absolute;right:2.4cqw;bottom:1.6cqw;font-size:3cqw;opacity:.85}
.booklet-hand-tip{font-size:1.45cqw;color:#fff;background:rgba(40,28,18,.7);padding:.7cqw 1.8cqw;border-radius:99px;
  text-shadow:0 .2cqw .5cqw rgba(0,0,0,.6)}
.booklet-stage{position:absolute;inset:0;z-index:5;pointer-events:auto;display:flex;flex-direction:column;
  align-items:center;justify-content:center;gap:1.2cqw}
.booklet-sheet{position:relative;width:72cqw;height:51cqw;background-size:cover;background-position:center;
  background-color:#fff8ec;border-radius:.8cqw;box-shadow:0 1.6cqw 4cqw rgba(0,0,0,.5);
  border:.35cqw solid #fffdf6;animation:bookOpen .7s cubic-bezier(.2,.9,.3,1) backwards}
@keyframes bookOpen{from{opacity:0;transform:rotateY(-72deg) scale(.86)}to{opacity:1;transform:none}}
.booklet-hot{position:absolute;border:none;background:transparent;border-radius:1cqw;cursor:pointer;
  outline:.25cqw dashed transparent;transition:.2s}
.booklet-hot:hover{background:rgba(255,255,255,.16);outline-color:#e9a76a;box-shadow:inset 0 0 2cqw rgba(233,167,106,.45)}
.booklet-hot::after{content:'查看证件卡';position:absolute;left:50%;bottom:2%;transform:translateX(-50%);
  font-size:.95cqw;color:#7b4b28;background:rgba(255,250,236,.92);padding:.25cqw .9cqw;border-radius:99px;
  opacity:0;transition:.2s;white-space:nowrap}
.booklet-hot:hover::after{opacity:1}
.booklet-tip{font-size:1.35cqw;color:#fff;background:rgba(40,28,18,.7);padding:.6cqw 1.6cqw;border-radius:99px}
.shade-2{z-index:6;background:rgba(30,22,16,.62)}
.idcard-stage{position:absolute;inset:0;z-index:7;pointer-events:auto;display:flex;flex-direction:column;
  align-items:center;justify-content:center;gap:1.2cqw}
.idcard-paper{position:relative;width:64cqw;height:40.4cqw;background-size:cover;background-position:center;
  background-color:#f3f6f8;border:.4cqw solid #fff;border-radius:1cqw;box-shadow:0 1.6cqw 4cqw rgba(0,0,0,.5);
  animation:dossierIn .45s cubic-bezier(.2,1.1,.4,1) backwards}
.idcard-fallback{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;
  justify-content:center;color:#4a5a68;text-align:center;padding:3cqw}
.idcard-fallback b{font-size:3cqw;margin-bottom:1cqw}
.idcard-fallback p{font-size:1.3cqw;line-height:1.7;max-width:44cqw}
.idcard-actions{display:flex;gap:1.4cqw;align-items:center}
.idcard-actions .btn-primary,.idcard-actions .btn-ghost{font-size:1.5cqw;padding:.8cqw 2.4cqw}

/* 玩家独白：最后一张配图虚化作底 + NPC 立绘在前，文字压在下缘 */
.mono-page{position:absolute;inset:0;z-index:0;pointer-events:none;overflow:hidden;background:#1a1714}
.mono-bg{position:absolute;inset:-8%;background-size:cover;background-position:center;
  filter:blur(2.2cqw) brightness(.6) saturate(.85)}
.mono-npc{position:absolute;left:50%;bottom:-2%;transform:translateX(-50%);height:96%;
  object-fit:contain;filter:drop-shadow(0 1cqw 2.4cqw rgba(0,0,0,.5))}
.mono-scrim{position:absolute;inset:0;background:linear-gradient(180deg,rgba(20,16,12,.28),transparent 40%,rgba(20,16,12,.55))}
.mono-page ~ .fx-item .dialog-wrap{bottom:3cqw}

/* 真实领养契约图铺底：把空白栏位填上名字/猫信息，章仍可拖到纸上盖 */
.contract.real-paper{width:64cqw;height:40cqw;background-size:cover;background-position:center;
  border-radius:.8cqw;padding:0;box-shadow:0 1.4cqw 4cqw rgba(0,0,0,.38)}
/* 字段一律左对齐，精准压在各栏的横线上（横线起点 x≈33%，四条线 y≈39/50/65/77%） */
.contract.real-paper .cf-field{position:absolute;left:33%;text-align:left;white-space:nowrap;
  color:#2f4661;font-size:1.45cqw;line-height:1.2;font-weight:600;padding:0;overflow:hidden;text-overflow:ellipsis}
.cf-breed{top:34%;width:38%}
.cf-sex{top:45%;width:20%}
.cf-trait{top:60%;width:37%;font-size:1.15cqw!important}
.cf-owner{top:72%;width:42%}
.contract.real-paper .stamp{right:23%;bottom:17%;width:8cqw;height:8cqw;font-size:1.1cqw}
.contract.real-paper.stamped .cf-owner{text-decoration:underline dotted #b5653a}

/* 医院：同意书 / 抢猫 / 手术门 */
.consent{position:absolute;left:6cqw;bottom:12cqw;z-index:4;width:26cqw;background:#fffdf7;border:.3cqw solid #c5d8d2;
  border-radius:.8cqw;padding:1.6cqw;box-shadow:0 .8cqw 2cqw rgba(0,0,0,.22);pointer-events:auto}
.consent h4{font-size:1.5cqw;color:#6b9a92;margin-bottom:.8cqw}
.consent p{font-size:1.15cqw;line-height:1.7;color:#5c6f6a;margin-bottom:1cqw}
.fee-tag{font-size:1.3cqw;color:#b5703a;font-weight:700;margin-bottom:.8cqw}
/* M8 开头：真实契约书 / 小票，盖章后换图 */
.hospital-doc{position:absolute;inset:0;z-index:8;background:rgba(32,28,24,.62);
  display:flex;flex-direction:column;align-items:center;justify-content:center;pointer-events:auto}
.hospital-doc-frame{position:relative;width:36cqw;height:45cqw;background:#fffdf7;border:.3cqw solid #d8c6a8;
  border-radius:.8cqw;box-shadow:0 1.4cqw 3.5cqw rgba(0,0,0,.35);overflow:hidden}
/* 通知书已抠白边：不套白卡片框，直接像一张纸贴在场景上 */
.hospital-doc-frame[data-doc="consent"]{height:32cqw;width:auto;background:transparent;border:none;
  box-shadow:none;overflow:visible;border-radius:0;transition:width .35s ease,height .35s ease}
.hospital-doc-frame[data-doc="consent"] .hospital-doc-img{background:transparent;object-fit:contain;width:auto;height:100%}
/* 通知书放大查看：贴近整屏，文字看得清；收小回到缩略尺寸 */
.hospital-doc-frame.consent-zoom{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);
  width:64cqw;height:auto;max-height:92cqw;z-index:40;cursor:zoom-out;
  background:transparent;border:none;box-shadow:0 2cqw 6cqw rgba(0,0,0,.6)}
.hospital-doc-frame.consent-zoom .hospital-doc-img{height:64cqw;object-fit:contain;background:transparent}
.hospital-doc-frame.consent-zoom .hospital-doc-stamp-img{display:none}
/* 放大时把操作条提到最上层固定底部，避免被大纸盖住 */
.fx-item.doc-zoomed .hospital-doc-bar{position:fixed;left:0;right:0;bottom:3cqw;z-index:50;
  flex-direction:row;gap:2cqw;justify-content:center;align-items:center;padding:0 4cqw}
.fx-item.doc-zoomed .hospital-doc-note{color:#fff;text-shadow:0 .2cqw .6cqw rgba(0,0,0,.9)}
/* 小票已抠掉白底：不再套白色卡片框，直接像一张纸片贴在场景上 */
.hospital-doc-frame[data-doc="receipt"]{height:47cqw;width:auto;background:transparent;border:none;
  box-shadow:none;overflow:visible;border-radius:0}
.hospital-doc-frame[data-doc="receipt"] .hospital-doc-img{background:transparent;object-fit:contain;width:auto;height:100%}
.hospital-doc-img{display:block;width:100%;height:100%;object-fit:contain;background:#fff}
/* 从同意书里抠出的透明印章：落在原来的签名右上方，不再叠一圈难看的文字章 */
.hospital-doc-stamp-img{position:absolute;right:11.7%;top:71%;width:4.5cqw;height:auto;
  transform:translateY(-7cqw) rotate(-22deg) scale(1.7);opacity:0;transform-origin:50% 50%}
.hospital-doc-stamp-img.drop{animation:docStampImg .6s cubic-bezier(.2,1.4,.4,1) forwards}
@keyframes docStampImg{0%{opacity:0;transform:translateY(-7cqw) rotate(-22deg) scale(1.7)}
  68%{opacity:1;transform:translateY(0) rotate(-8deg) scale(.96)}
  100%{opacity:1;transform:translateY(0) rotate(-10deg) scale(1)}}
/* 医院剧情CG：整屏真实插画 + 底部字幕 */
.cg-panel{position:absolute;inset:0;z-index:30;background:#101820;overflow:hidden;pointer-events:auto}
.cg-img{display:block;width:100%;height:100%;object-fit:cover;opacity:1;animation:cgIn .9s ease-out}
.cg-veil{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,0) 44%,rgba(18,20,24,.76) 100%)}
.cg-copy{position:absolute;left:0;right:0;bottom:4cqw;text-align:center;color:#fff5e6}
.cg-copy h3{font-size:2.3cqw;letter-spacing:.12em;margin-bottom:.8cqw;text-shadow:0 .3cqw 1cqw rgba(0,0,0,.6)}
.cg-copy p{font-size:1.45cqw;line-height:1.8;margin:0 auto 1.6cqw;max-width:62cqw;text-shadow:0 .2cqw .8cqw rgba(0,0,0,.7)}
.cg-copy .btn-primary{font-size:1.35cqw;padding:.8cqw 2.4cqw}
/* 麻药图：整屏只有画面，点任意处一次；门口图：短暂停留后自动过 */
.tap-cg,.story-door{pointer-events:auto;cursor:pointer;background:#eef2f2}
.tap-cg .cg-veil,.story-door .cg-veil,.tap-cg .cg-copy,.story-door .cg-copy{display:none}
@keyframes cgIn{from{transform:scale(1.06)}to{transform:scale(1)}}
.hospital-doc-bar{display:flex;flex-direction:column;align-items:center;gap:.7cqw;margin-top:1.4cqw}
.hospital-doc-note{font-size:1.3cqw;color:#fff3dd;text-shadow:0 .2cqw .6cqw rgba(0,0,0,.5)}
.hospital-doc-bar .btn-primary{font-size:1.25cqw;padding:.7cqw 1.8cqw}
.snatch-box{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:5;width:44cqw;
  background:rgba(255,250,240,.97);border-radius:1.6cqw;padding:2.4cqw;text-align:center;
  box-shadow:0 1.4cqw 4cqw rgba(0,0,0,.3);pointer-events:auto}
.snatch-box h3{font-size:1.9cqw;color:#8a5f36;margin-bottom:1cqw}
.snatch-bar{height:2.2cqw;background:#efe0c9;border-radius:99px;overflow:hidden;margin:1.2cqw 0}
.snatch-bar i{display:block;height:100%;width:0;background:linear-gradient(90deg,#e9a76a,#d2604c);transition:width .18s}
.grab-btn{width:14cqw;height:14cqw;border-radius:50%;background:#e9a76a;color:#fff;font-size:2cqw;font-weight:800;
  box-shadow:0 .8cqw 2cqw rgba(210,140,70,.4);transition:.08s}
.grab-btn:active{transform:scale(.92)}
.surgery-sign{position:absolute;left:65.5cqw;top:15cqw;z-index:4;background:#d2604c;color:#fff;
  font-size:1.6cqw;padding:.8cqw 2cqw;border-radius:.6cqw;letter-spacing:.2em;box-shadow:0 .5cqw 1.4cqw rgba(0,0,0,.25)}

/* 清洁小游戏 */
.clean-tools{position:absolute;left:50%;bottom:11cqw;transform:translateX(-50%);z-index:4;display:flex;
  gap:1cqw;pointer-events:auto;flex-wrap:wrap;justify-content:center;max-width:80cqw}
.tool-btn{background:#fffaf0;border-radius:.9cqw;padding:1cqw 1.6cqw;font-size:1.4cqw;
  box-shadow:0 .5cqw 1.4cqw rgba(0,0,0,.22);border:.2cqw solid transparent;transition:.2s}
.tool-btn:hover{border-color:#e9a76a;transform:translateY(-.3cqw)}
.tool-btn.used{opacity:.4;pointer-events:none}
.clean-progress{position:absolute;left:50%;top:8cqw;transform:translateX(-50%);z-index:4;
  background:rgba(74,63,53,.85);color:#fff;padding:.8cqw 2cqw;border-radius:99px;font-size:1.3cqw;pointer-events:none}
.dirt-layer{position:absolute;inset:0;z-index:2;pointer-events:none;transition:opacity .45s}

/* 逗猫棒 / 罐头 / 第一视角 */
.wand-stage{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:4;width:44cqw;
  background:rgba(255,250,240,.95);border-radius:1.4cqw;padding:2cqw;text-align:center;pointer-events:auto;
  box-shadow:0 1cqw 3cqw rgba(0,0,0,.3)}
.wand-stage h3{font-size:1.8cqw;color:#8a5f36;margin-bottom:1cqw}
.wand-actions{display:flex;gap:1cqw;justify-content:center;margin:1.4cqw 0}
.wand-actions button{font-size:1.4cqw;background:#fdf3e2;padding:.9cqw 2cqw;border-radius:.8cqw}
.wand-actions button:hover{background:#fbe7c8}
.can-row{display:flex;gap:1.4cqw;justify-content:center;margin:1.4cqw 0}
.can-item{font-size:4cqw;padding:1cqw;background:#fdf3e2;border-radius:1cqw;transition:.2s;cursor:grab}
.can-item:hover{transform:translateY(-.5cqw);background:#fbe7c8}
.hand{position:absolute;width:12cqw;z-index:5;pointer-events:none;font-size:8cqw;transform:translate(-50%,-50%)}
.scratch{position:absolute;z-index:6;pointer-events:none;font-size:3cqw;color:#c4483c;letter-spacing:.2em}

/* 通用信息条 */
.top-note{position:absolute;left:50%;top:15cqw;transform:translateX(-50%);z-index:4;
  background:rgba(255,250,240,.94);border-radius:99px;padding:.7cqw 2cqw;font-size:1.25cqw;
  color:#8a7157;box-shadow:0 .4cqw 1.2cqw rgba(0,0,0,.15);pointer-events:none;white-space:nowrap}
.float-photos{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:5;
  display:flex;gap:1.4cqw;pointer-events:auto}

/* 加载条 / 转场 */
.loading-line{width:30cqw;height:.6cqw;background:#e8d5b7;border-radius:99px;overflow:hidden;margin-top:2cqw}
.loading-line i{display:block;height:100%;width:0;background:#e9a76a;animation:loading 1.6s ease-in-out forwards}
@keyframes loading{to{width:100%}}

/* ============================================================
   互动与游戏层（IX）：G1–G9 + L 系列当场画面反馈
   ============================================================ */
#stage.mode-playing #hud{z-index:8}          /* 交互时顶栏数字仍要看得见 */
.ix-root{position:absolute;inset:0;pointer-events:auto;z-index:4}
.ix-hint{position:absolute;left:50%;top:6.8cqw;transform:translateX(-50%);z-index:6;
  background:rgba(74,63,53,.8);border-radius:99px;padding:.55cqw 1.8cqw;font-size:1.15cqw;
  color:#fff;box-shadow:0 .3cqw 1cqw rgba(0,0,0,.25);white-space:nowrap;pointer-events:none}
.ix-tip{position:absolute;left:50%;top:11.5cqw;transform:translateX(-50%);z-index:9;
  background:rgba(74,63,53,.9);color:#fff;border-radius:99px;padding:.7cqw 2cqw;
  font-size:1.2cqw;white-space:nowrap;pointer-events:none;animation:tipIn .3s ease}
@keyframes tipIn{from{opacity:0;transform:translate(-50%,-.8cqw)}}
.ix-flash{position:absolute;inset:0;background:#fff;z-index:9;pointer-events:none;animation:flashOut .26s ease forwards}
@keyframes flashOut{from{opacity:.92}to{opacity:0}}
.task-strip{position:absolute;right:1.4cqw;top:7cqw;z-index:4;width:19cqw;background:rgba(255,250,240,.94);
  border-radius:1cqw;padding:1cqw 1.2cqw;box-shadow:0 .5cqw 1.4cqw rgba(0,0,0,.18);
  display:flex;flex-direction:column;gap:.4cqw;pointer-events:none;animation:tipIn .35s ease}
.task-strip b{font-size:1.1cqw;color:#8a5f36;border-bottom:.12cqw solid #e8d7bd;padding-bottom:.4cqw}
.task-strip span{font-size:1.05cqw;color:#6a5845}
.task-strip small{font-size:.9cqw;color:#a08a70;line-height:1.4}
#stat-money.rolling{color:#d2604c;transform:scale(1.12);transition:.2s}

/* ---------- G1 伸手去拽它 ---------- */
/* 抓猫就在【家】的沙发特写上做，背景透出家的场景，只在猫身上打一束聚光压暗四周 */
.ix-hand-scene{position:absolute;inset:0;background:radial-gradient(ellipse at 72% 60%,rgba(255,236,196,.06),rgba(18,14,11,.5) 74%);overflow:hidden}
.ix-cat-slot{position:absolute;transform:translate(-50%,-50%);transition:filter .4s,transform .4s;z-index:2}
.ix-cat-slot svg{display:block;filter:drop-shadow(0 0 2cqw rgba(0,0,0,.6))}
.ix-hand-scene[data-state="far"] .ix-cat-slot{filter:brightness(.62) blur(.12cqw);transform:translate(-50%,-50%) scale(.9)}
.ix-hand-scene[data-state="near"] .ix-cat-slot{filter:brightness(.85);transform:translate(-50%,-50%) scale(.96)}
.ix-hand-scene[data-state="alert"] .ix-cat-slot{filter:brightness(1.1);transform:translate(-50%,-50%) scale(1.02)}
.ix-hand-scene[data-state="far"] .sc-ear,.ix-hand-scene[data-state="far"] .sc-eyes,
.ix-hand-scene[data-state="near"] .sc-eyes{opacity:.15}
.ix-hand-scene[data-state="far"] .sc-paw,.ix-hand-scene[data-state="near"] .sc-paw,
.ix-hand-scene[data-state="alert"] .sc-paw{opacity:0}
.ix-hand-scene[data-state="alert"] .sc-eyes{filter:drop-shadow(0 0 .6cqw #f2d37e)}
.ix-hand-scene .sc-ear,.ix-hand-scene .sc-eyes,.ix-hand-scene .sc-paw{transition:opacity .35s,transform .35s}
/* 耳朵会以根部为轴抖动：手一靠近（near/alert）立刻抖，退回（far/relax）立刻停、恢复放松 */
.ix-hand-scene .sc-ear{transform-box:fill-box;transform-origin:50% 100%}
.ix-hand-scene[data-state="alert"] .sc-ear{animation:earFlick .26s ease-in-out infinite}
@keyframes earFlick{0%,100%{transform:rotate(0)}25%{transform:rotate(-13deg)}75%{transform:rotate(11deg)}}
.ix-hand-scene[data-state="relax"] .sc-ear,.ix-hand-scene[data-state="far"] .sc-ear{animation:none;transform:rotate(0)}
.ix-hand-scene[data-state="pounce"] .ix-cat-slot{filter:brightness(1.05);transform:translate(-50%,-50%) scale(1.08)}
.ix-hand-scene[data-state="pounce"] .sc-paw{opacity:1;animation:pouncePaw .42s ease forwards}
@keyframes pouncePaw{from{transform:translate(-3cqw,1cqw)}to{transform:translate(0,0)}}
.ix-hand{position:absolute;transform:translate(-50%,-50%);font-size:8cqw;z-index:5;
  filter:drop-shadow(0 .6cqw 1cqw rgba(0,0,0,.6));pointer-events:none;transition:left .06s linear,top .06s linear}
.ix-claws{position:absolute;left:50%;top:38%;transform:translate(-50%,-50%) rotate(-28deg);display:flex;gap:.7cqw}
.ix-claws i{display:block;width:.35cqw;height:0;background:linear-gradient(#c4483c,#e07a68);border-radius:99px;
  box-shadow:0 0 .5cqw rgba(196,72,60,.8);transition:height .6s cubic-bezier(.2,.8,.3,1)}
.ix-hand-scene[data-state="scratched"] .ix-claws i{height:4.2cqw}
.ix-hand-scene[data-state="scratched"] .ix-claws i:nth-child(2){transition-delay:.12s;height:5cqw}
.ix-hand-scene[data-state="scratched"] .ix-claws i:nth-child(3){transition-delay:.24s;height:3.6cqw}
.ix-black{position:absolute;inset:0;background:#12100e;opacity:0;transition:opacity .7s;z-index:8;pointer-events:none}
.ix-hand-scene[data-state="black"] .ix-black{opacity:1}
/* G1 真实「挠爪子挠人」反应帧：被抓到时整屏盖上来，替代原来纯 CSS 爪痕 */
.ix-scratch-photo{position:absolute;inset:0;background-size:cover;background-position:center;
  opacity:0;z-index:7;pointer-events:none;transform:scale(1.06);transition:opacity .12s,transform .3s}
.ix-hand-scene[data-state="pounce"] .ix-scratch-photo,
.ix-hand-scene[data-state="scratched"] .ix-scratch-photo{opacity:1;transform:scale(1);transition:none}
.ix-hand-scene.has-scratch[data-state="scratched"] .ix-claws{display:none}
.ix-hand-scene.has-scratch[data-state="scratched"] .ix-cat-slot{opacity:0}
/* ---- G1 新版：真实分镜 + 第一视角写实手 + 被挠出血（不再有深色简笔猫 / emoji 手） ---- */
.ix-hand-scene.has-real{background:#191512}
.ix-hand-photo{position:absolute;inset:0;background-size:cover;background-position:center;
  z-index:1;pointer-events:none;transition:opacity .5s ease,transform .8s ease}
.ix-hand-photo.far{opacity:1;transform:scale(1.02)}
.ix-hand-photo.near{opacity:0;transform:scale(1.1)}
.ix-hand-scene[data-state="near"] .ix-hand-photo.far,
.ix-hand-scene[data-state="alert"] .ix-hand-photo.far,
.ix-hand-scene[data-state="touch"] .ix-hand-photo.far,
.ix-hand-scene[data-state="pounce"] .ix-hand-photo.far,
.ix-hand-scene[data-state="scratched"] .ix-hand-photo.far{opacity:0}
.ix-hand-scene[data-state="near"] .ix-hand-photo.near,
.ix-hand-scene[data-state="alert"] .ix-hand-photo.near,
.ix-hand-scene[data-state="touch"] .ix-hand-photo.near,
.ix-hand-scene[data-state="pounce"] .ix-hand-photo.near,
.ix-hand-scene[data-state="scratched"] .ix-hand-photo.near{opacity:1;transform:scale(1.03)}
.ix-hand-scene.has-real .ix-hand{width:13cqw;height:auto;font-size:0;z-index:8;
  transform:translate(-50%,-52%) rotate(-6deg);
  filter:drop-shadow(0 .8cqw 1.4cqw rgba(0,0,0,.55));
  transition:left .06s linear,top .06s linear,opacity .3s}
.ix-hand-scene.has-real .ix-hand svg{display:block;width:100%;height:auto}
.ix-hand-scene.has-real[data-state="scratched"] .ix-hand{opacity:.92}
.ix-hand-scene.has-real .ix-scratch-photo{z-index:6}
/* 被挠后「缩回手」这一步：挠爪大图退场、猫重新可见，手往回收；点一下继续 */
.ix-hand-scene[data-state="retreat"] .ix-scratch-photo{opacity:0;transform:scale(1.06);transition:opacity .5s,transform .6s}
.ix-hand-scene[data-state="retreat"] .ix-scat-slot,
.ix-hand-scene[data-state="retreat"] .ix-cat-slot{opacity:1}
.ix-hand-scene[data-state="retreat"] .ix-hand-photo.near{opacity:0}
.ix-hand-scene[data-state="retreat"] .ix-hand-photo.far{opacity:1}
.ix-hand-scene.has-real[data-state="retreat"] .ix-hand{opacity:.55;top:96%!important;transform:translate(-50%,-50%) rotate(-10deg) scale(.9)}
.ix-retreat-tip{position:absolute;left:50%;top:12cqw;transform:translateX(-50%);z-index:9;
  background:rgba(74,63,53,.86);color:#fff;padding:.8cqw 2cqw;border-radius:99px;font-size:1.2cqw;
  letter-spacing:.05em;pointer-events:none;white-space:nowrap;animation:tipIn .3s ease-out}
.ix-bleed-line{transition:opacity .4s}
.ix-hand-scene[data-state="retreat"] .ix-bleed-line{opacity:.85}
/* 三道抓痕 + 两颗血珠：只画「伤」，不画小黑人 */
.ix-blood{position:absolute;left:50%;top:32%;width:12cqw;height:7cqw;
  transform:translate(-50%,-50%) rotate(-17deg);z-index:3;opacity:0;pointer-events:none}
.ix-blood i{position:absolute;top:0;width:.55cqw;height:5.4cqw;border-radius:99px;
  background:linear-gradient(#7d1a14,#c93b2c 55%,#ef9a86);
  box-shadow:0 0 .7cqw rgba(201,59,44,.75)}
.ix-blood i:nth-child(1){left:12%}
.ix-blood i:nth-child(2){left:44%;height:6.2cqw}
.ix-blood i:nth-child(3){left:76%;height:4.6cqw}
.ix-blood b{position:absolute;width:1cqw;height:1cqw;border-radius:50%;
  background:radial-gradient(circle at 34% 28%,#fa7d63,#a52318 62%,#66100b);
  box-shadow:0 .2cqw .5cqw rgba(0,0,0,.45)}
.ix-blood b:nth-of-type(1){left:20%;top:72%}
.ix-blood b:nth-of-type(2){left:70%;top:80%}
.ix-hand-scene[data-state="scratched"] .ix-blood{opacity:1}
.ix-bleed-line{position:absolute;left:50%;top:12%;transform:translateX(-50%);z-index:10;
  padding:.8cqw 2.2cqw;border-radius:99px;background:rgba(28,18,14,.72);
  color:#ffe3d6;font-size:1.5cqw;letter-spacing:.05em;white-space:nowrap;
  opacity:0;transition:opacity .45s;pointer-events:none}
.ix-hand-scene[data-state="scratched"] .ix-bleed-line{opacity:1;transition:none}
.ix-hand-scene.has-real .ix-black{z-index:11}

/* ---------- G2 逗猫棒（先随便晃 → 三处建议 → 短时反应） ---------- */
/* 真实美术打底：俯视沙发角木地板+光斑，压暗保证互动元素可读。
   素材缺失时回退到原深色渐变，判定/坐标一律不动。 */
.ix-wand-scene{position:absolute;inset:0;overflow:hidden;
  background:radial-gradient(ellipse at 55% 55%,rgba(28,24,20,.5),rgba(12,10,9,.84) 80%),
             url('../assets/web/overhead_cow.jpg') center/cover no-repeat}
/* ---- G2 真实素材：按品种的猫咪反应帧整屏切换 + 走位虚线挥动区 + 真实羽毛逗猫棒 ---- */
.ix-wand-scene.real-wand{background:#191512}
.ix-wand-frames{position:absolute;inset:0;z-index:1}
/* G2 只切 look/scratch/far/puff 四帧；第 1 格「呲牙伸爪」不加载，专供 G1 挠手。
   切帧过渡缩短，让「拨」看起来是逐帧动作而不是一团糊影。 */
.ix-wand-frames .wf{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  opacity:0;transition:opacity .28s ease;pointer-events:none}
.ix-wand-scene[data-pose="look"]    .wf[data-p="look"],
.ix-wand-scene[data-pose="scratch"] .wf[data-p="scratch"],
.ix-wand-scene[data-pose="far"]     .wf[data-p="far"],
.ix-wand-scene[data-pose="puff"]    .wf[data-p="puff"]{opacity:1}
/* 走位虚线＝逗猫棒可挥动的区域，挥动时淡入 */
.ix-wand-swing{position:absolute;inset:0;z-index:2;background-size:cover;background-position:center;
  opacity:.2;mix-blend-mode:multiply;pointer-events:none;transition:opacity .45s}
.ix-wand-scene[data-playing="1"] .ix-wand-swing{opacity:.5}
/* 压一层暗角，保证 HUD / 台词在真实照片上仍清楚 */
.ix-wand-scene.real-wand::after{content:'';position:absolute;inset:0;z-index:2;pointer-events:none;
  background:radial-gradient(ellipse at 55% 44%,transparent 34%,rgba(22,17,13,.4) 100%)}
.ix-beam{position:absolute;left:36%;top:0;width:42cqw;height:100%;transform:skewX(-9deg);
  background:linear-gradient(90deg,rgba(255,244,205,0),rgba(255,244,205,.19),rgba(255,244,205,0));
  filter:blur(1cqw);pointer-events:none;z-index:2}
/* 玩家在画面下方，不在右侧 */
.ix-wand-player{position:absolute;left:50%;bottom:5cqw;transform:translateX(-50%);z-index:5;
  display:flex;flex-direction:column;align-items:center;filter:drop-shadow(0 .5cqw .8cqw rgba(0,0,0,.45))}
.ix-wand-player span{display:flex;align-items:center;justify-content:center;
  width:7.5cqw;height:7.5cqw;border-radius:50%;background:rgba(255,250,240,.92);
  font-size:4.6cqw;line-height:1}
.ix-wand-player b{font-size:1.2cqw;color:#fff;background:rgba(45,36,28,.75);
  border-radius:99px;padding:.1cqw 1.1cqw;margin-top:.15cqw}
/* 「我」也换成同一只写实手，不再用 emoji */
.ix-wand-player span.wp-hand{padding:1cqw;box-sizing:border-box;font-size:0}
.ix-wand-player span.wp-hand svg{display:block;width:100%;height:100%}
.ix-wand-cat{position:absolute;transform:translate(-50%,-50%);z-index:2;transition:filter .4s}
.ix-wand-cat svg{display:block;filter:drop-shadow(0 1cqw 2cqw rgba(0,0,0,.5))}
/* 羽毛对准指针（羽毛在 svg 顶部约 10% 处），棍身向下方延伸；
   越往下拖，棍身越沉出屏幕，只剩羽毛在底部安全线逗猫 */
.ix-wand-stick{position:absolute;transform:translate(-50%,-10%);z-index:4;pointer-events:none;
  transition:left .05s linear,top .05s linear;filter:drop-shadow(0 .5cqw 1cqw rgba(0,0,0,.5))}
.ix-wand-stick svg{display:block}
/* 真实羽毛逗猫棒：羽毛在图右上约(76%,22%)，用 translate 把羽毛对准指针；
   棍身斜向左下延伸出画面，左右挥动时以握柄为轴轻摆。 */
.ix-wand-stick.real-stick{transform:translate(-76%,-22%);width:14cqw}
.ix-wand-stick.real-stick .wd-real{display:block;width:100%;height:auto;
  transform-origin:16% 82%;transition:transform .14s;
  filter:drop-shadow(0 .4cqw .8cqw rgba(0,0,0,.4))}
.ix-wand-scene[data-dir="left"]  .ix-wand-stick.real-stick .wd-real{transform:rotate(-9deg)}
.ix-wand-scene[data-dir="right"] .ix-wand-stick.real-stick .wd-real{transform:rotate(9deg)}
.ix-wand-scene .wd-feather{transform-origin:45px 26px;transition:transform .12s}
.ix-wand-scene[data-dir="left"] .wd-feather{transform:rotate(-22deg)}
.ix-wand-scene[data-dir="right"] .wd-feather{transform:rotate(22deg)}
/* 猫的部件：默认静止，状态由 band + playing 决定 */
.ix-wand-scene .lv-paws,.ix-wand-scene .lv-zzz{opacity:0;transition:opacity .3s}
.ix-wand-scene .lv-head,.ix-wand-scene .lv-body{transition:transform .35s}
.ix-wand-scene .lv-eyes{transition:transform .18s}
.ix-wand-scene .lv-ear{transform-box:fill-box;transform-origin:50% 100%}
.ix-wand-scene .lv-tail{transform-box:fill-box;transform-origin:10% 90%}
.ix-wand-scene[data-band="eyes"] .lv-eyes{transform:translateY(var(--wy,0px))}
.ix-wand-scene[data-playing="1"][data-band="eyes"][data-dir="left"] .lv-head{transform:rotate(-8deg)}
.ix-wand-scene[data-playing="1"][data-band="eyes"][data-dir="right"] .lv-head{transform:rotate(8deg)}
.ix-wand-scene[data-playing="1"][data-band="far"] .lv-paws{opacity:1;animation:pawReach .9s ease-in-out infinite alternate}
.ix-wand-scene[data-playing="1"][data-band="far"] .lv-ear.r{animation:earTwitch .5s ease-in-out infinite alternate}
.ix-wand-scene[data-playing="1"][data-band="far"] .lv-tail{animation:tailWag .8s ease-in-out infinite alternate}
.ix-wand-scene[data-playing="1"][data-band="mine"] .lv-paws{opacity:1;animation:pawReach .7s ease-in-out 1}
.ix-wand-scene[data-playing="0"][data-band="mine"] .lv-paws{opacity:0}
.ix-wand-scene[data-stopped="1"] .lv-paws{opacity:0;animation:none}
.ix-wand-scene[data-stopped="1"] .lv-head{transform:rotate(16deg) translateX(1.4cqw)}
.ix-wand-scene[data-stopped="1"] .lv-zzz{opacity:1}
@keyframes pawReach{from{transform:translateY(0) scale(1)}to{transform:translateY(-2.2cqw) scale(1.06)}}
@keyframes earTwitch{from{transform:rotate(0)}to{transform:rotate(-12deg)}}
@keyframes tailWag{from{transform:rotate(-6deg)}to{transform:rotate(10deg)}}
/* 逗猫棒开场的「介绍框」：先讲清这个持续记录的小框，再放玩家动手 */
.wand-intro{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:5;
  background:#fffaf0;border-radius:1.6cqw;padding:2.4cqw 3cqw;width:46cqw;
  box-shadow:0 1.6cqw 4cqw rgba(0,0,0,.28);pointer-events:auto;text-align:center}
.wand-intro h3{font-size:2.2cqw;color:#8a5f36;margin-bottom:1cqw}
.wand-intro p{font-size:1.4cqw;line-height:1.8;color:#5c4c3d;margin-bottom:1.4cqw}
.wand-intro-box{display:flex;flex-direction:column;gap:.35cqw;text-align:left;
  background:rgba(255,250,240,.92);border:.18cqw solid #d8bd97;border-radius:1cqw;
  padding:1cqw 1.4cqw;margin-bottom:1.6cqw;font-size:1.15cqw;color:#7b6449}
.wand-intro-box b{color:#8a5f36;font-size:1.2cqw;margin-bottom:.25cqw}
.ix-wand-hud{position:absolute;left:2cqw;top:7cqw;z-index:6;background:rgba(255,250,240,.92);
  border-radius:1cqw;padding:1cqw 1.4cqw;display:flex;flex-direction:column;gap:.4cqw;font-size:1.15cqw;color:#7b6449;pointer-events:none}
.ix-wand-hud b{color:#8a5f36;font-size:1.2cqw;margin-bottom:.3cqw}
.ix-wand-hud span.got{color:#c9803f;font-weight:700}
.ix-wand-tip{position:absolute;left:50%;bottom:13cqw;transform:translateX(-50%);z-index:6;
  background:rgba(255,250,240,.95);border:.2cqw dashed #d8bd97;border-radius:99px;
  padding:.5cqw 2.2cqw .5cqw .6cqw;font-size:1.3cqw;color:#8a7157;pointer-events:none;
  white-space:nowrap;display:flex;align-items:center;gap:.8cqw}
.ix-tip-cat{width:4.4cqw;height:4.4cqw;flex:none;display:flex;align-items:center;justify-content:center;overflow:hidden}
.ix-tip-cat svg,.ix-tip-cat img,.ix-tip-cat .asset-fallback{width:100%;height:100%;max-height:4.4cqw;object-fit:contain;display:block}
.ix-tip-text{white-space:nowrap}
.ix-wand-tip.show{animation:tipPop .5s ease}
@keyframes tipPop{0%{opacity:0;transform:translate(-50%,1cqw)}100%{opacity:1;transform:translate(-50%,0)}}
.ix-npc-line{position:absolute;left:50%;top:16cqw;transform:translateX(-50%);z-index:6;opacity:0;
  background:rgba(45,36,28,.86);color:#fff;padding:.7cqw 2cqw;border-radius:99px;font-size:1.3cqw;pointer-events:none;white-space:nowrap}
.ix-npc-line.show{animation:npcFade 2.4s ease forwards}
@keyframes npcFade{0%{opacity:0;transform:translate(-50%,.8cqw)}15%,75%{opacity:1;transform:translate(-50%,0)}100%{opacity:0}}
.ix-sigh{position:absolute;inset:0;z-index:9;background:#12100e;opacity:0;pointer-events:none;transition:opacity .6s}
.ix-wand-scene[data-band="sigh"] .ix-sigh{opacity:1}
.ix-sigh span{position:absolute;color:#8f8272;font-size:2.4cqw;letter-spacing:.4em;opacity:0;
  animation:sighFloat 2.6s ease-in-out infinite}
.ix-sigh span:nth-child(1){left:22%;top:34%;animation-delay:0s}
.ix-sigh span:nth-child(2){left:52%;top:52%;animation-delay:.7s}
.ix-sigh span:nth-child(3){left:71%;top:26%;animation-delay:1.4s}
.ix-sigh span:nth-child(4){left:38%;top:68%;animation-delay:2.1s}
@keyframes sighFloat{0%{opacity:0;transform:translateY(1cqw)}30%,70%{opacity:.85}100%{opacity:0;transform:translateY(-2cqw)}}

/* ---------- G3 开罐罐 ---------- */
.ix-can-scene{position:absolute;inset:0;background:rgba(38,30,25,.62);overflow:hidden}
.ix-can-row{position:absolute;left:50%;top:32%;transform:translate(-50%,-50%);display:flex;gap:4cqw;z-index:4;
  transition:opacity .4s,transform .4s}
.ix-can-pick{background:#fffaf0;border-radius:1.4cqw;padding:1cqw 2cqw;box-shadow:0 .8cqw 2cqw rgba(0,0,0,.28);
  transition:.3s;display:flex;flex-direction:column;align-items:center}
.ix-can-pick svg{display:block}
/* 三选一用真实罐头图（透明 PNG，正方形） */
.ix-can-pick img{display:block;width:150px;height:150px;object-fit:contain}
.ix-can-pick small{font-size:1.3cqw;color:#8a7157}
.ix-can-pick:hover{transform:translateY(-1cqw)}
.ix-can-pick.chosen{transform:scale(1.18);border:.3cqw solid #e9a76a}
.ix-can-pick:not(.chosen){opacity:.25;transform:scale(.86)}
.ix-can-scene[data-phase="open"] .ix-can-row,
.ix-can-scene[data-phase="opened"] .ix-can-row,
.ix-can-scene[data-phase="floor"] .ix-can-row,
.ix-can-scene[data-phase="waiting"] .ix-can-row,
.ix-can-scene[data-phase="empty"] .ix-can-row{display:none}
.ix-can-open{position:absolute;inset:0;display:none;z-index:5;align-items:center;justify-content:center;flex-direction:column}
.ix-can-scene[data-phase="open"] .ix-can-open,
.ix-can-scene[data-phase="opened"] .ix-can-open{display:flex}
.ix-can-big{position:relative;transition:transform .6s,opacity .6s}
.ix-can-big > svg{display:block;filter:drop-shadow(0 1cqw 2cqw rgba(0,0,0,.35))}
/* 真实罐头照片：240×285 的容器里放正方形透明 PNG，罐口对齐切开轨道(cx80,cy46) */
.ix-can-photo{position:relative;width:240px;height:285px}
.ix-can-photo .cn-photo{position:absolute;left:0;top:0;width:240px;height:240px;object-fit:contain;
  filter:drop-shadow(0 1cqw 2cqw rgba(0,0,0,.35));transition:opacity .45s,transform .45s}
.ix-can-photo .cn-photo.opened{opacity:0;transform:scale(.94)}
.ix-can-scene[data-phase="opened"] .ix-can-photo .cn-photo.sealed{opacity:0;transform:scale(1.06)}
.ix-can-scene[data-phase="opened"] .ix-can-photo .cn-photo.opened{opacity:1;transform:scale(1)}
.ix-can-big .cn-lid{transform-origin:80px 46px;transition:transform .6s,opacity .6s}
.ix-can-scene[data-phase="opened"] .ix-can-big .cn-lid{transform:translate(6cqw,-9cqw) rotate(52deg);opacity:0}
.ix-can-scene[data-phase="floor"] .ix-can-open{display:none}
/* 切口轨道：精确盖在罐头上（同 viewBox 160×190，240×285），只画罐沿压痕与生长中的切口 */
.ix-cut-track{position:absolute;left:0;top:0;pointer-events:none;z-index:6;filter:none}
.ix-cut-seam,.ix-cut-glint{transition:stroke-dashoffset .08s linear}
/* 开罐器：切割轮对准罐沿切线走；旋钮/切割轮各自自转 */
.ix-opener{position:absolute;left:0;top:0;width:136px;height:74px;z-index:7;
  cursor:grab;touch-action:none;filter:drop-shadow(0 .5cqw 1cqw rgba(0,0,0,.4))}
.ix-opener svg{display:block;width:136px;height:74px;filter:none}
.ix-opener.gripping{cursor:grabbing}
.ix-pull-tip{position:absolute;bottom:9cqw;left:50%;transform:translateX(-50%);font-size:1.4cqw;color:#fff;
  background:rgba(45,36,28,.82);padding:.8cqw 2cqw;border-radius:99px;white-space:nowrap}
.ix-can-floor{position:absolute;left:50%;bottom:8cqw;transform:translate(-50%,0) scale(.6);opacity:0;z-index:5;transition:.6s}
.ix-can-scene[data-phase="floor"] .ix-can-floor,
.ix-can-scene[data-phase="waiting"] .ix-can-floor,
.ix-can-scene[data-phase="empty"] .ix-can-floor{opacity:1;transform:translate(-50%,0) scale(1)}
.ix-can-floor svg{display:block}
/* 落地罐头用真实开盖图；30 分钟后「满碗→空碗」交叉淡出 */
.ix-can-floor img{display:block;width:190px;height:190px;object-fit:contain;
  filter:drop-shadow(0 .6cqw 1.4cqw rgba(0,0,0,.4))}
.ix-bowl-wrap{position:relative;width:190px;height:190px}
.ix-bowl-wrap img{position:absolute;left:0;top:0;width:100%;height:100%;object-fit:contain;
  filter:drop-shadow(0 .6cqw 1.4cqw rgba(0,0,0,.35));transition:opacity .8s}
.ix-bowl-wrap .bw-empty{opacity:0}
.ix-can-floor.go-empty .bw-full{opacity:0}
.ix-can-floor.go-empty .bw-empty{opacity:1}
.ix-can-floor.go-empty svg{transform:rotate(-14deg) scale(.92);transition:transform .7s}
.ix-can-floor.go-empty{filter:saturate(.55)}
.ix-can-floor.empty:not(.real-bowl)::after{content:'空 了';position:absolute;left:50%;top:44%;transform:translate(-50%,-50%);
  font-size:1.2cqw;color:#8a7157;background:rgba(255,250,240,.9);padding:.3cqw .9cqw;border-radius:99px;white-space:nowrap}
.ix-can-floor.empty.real-bowl{filter:none;transform:translate(-50%,0) scale(1)}
/* ---- G3 新版：真实房间 + 木质小柜子（去掉灰色蒙层与白色卡片） ---- */
.ix-can-scene{background:linear-gradient(rgba(20,15,11,.24),rgba(20,15,11,.32)),
  url('../assets/web/home_room.jpg') center/cover no-repeat}
.ix-cabinet{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
  width:54cqw;z-index:4;transition:opacity .5s ease,transform .5s ease}
.ix-cab-top{height:5.2cqw;display:flex;align-items:center;justify-content:space-between;
  padding:0 2.4cqw;border:.35cqw solid #5e3a20;border-bottom:0;border-radius:1.4cqw 1.4cqw 0 0;
  background:linear-gradient(#b98655,#96663c);
  box-shadow:inset 0 .5cqw 1.2cqw rgba(255,224,180,.28),0 .7cqw 1.8cqw rgba(0,0,0,.45);
  color:#fff0d8;text-shadow:0 .15cqw .3cqw rgba(70,40,18,.7)}
.ix-cab-top span{font-size:1.6cqw;letter-spacing:.08em}
.ix-cab-top em{font-size:1.15cqw;font-style:normal;opacity:.82}
.ix-cab-shelf{display:flex;justify-content:space-around;align-items:flex-end;gap:1cqw;
  padding:2.2cqw 2.6cqw 1.4cqw;
  border-left:.35cqw solid #5e3a20;border-right:.35cqw solid #5e3a20;
  background:
    repeating-linear-gradient(90deg,rgba(90,55,28,.07) 0 2px,transparent 2px 30px),
    linear-gradient(#cba173,#ad8054);
  box-shadow:inset 0 0 3.5cqw rgba(84,48,22,.42)}
.ix-cab-foot{height:2.6cqw;display:flex;justify-content:space-around;align-items:center;
  border:.35cqw solid #5e3a20;border-top:.2cqw solid #6d4527;border-radius:0 0 1.4cqw 1.4cqw;
  background:linear-gradient(#96663c,#784b2b);
  box-shadow:0 .9cqw 2cqw rgba(0,0,0,.45)}
.ix-cab-foot i{display:block;width:4cqw;height:.5cqw;border-radius:99px;
  background:linear-gradient(#e8c58c,#a97b45);box-shadow:0 .15cqw .3cqw rgba(0,0,0,.5)}
/* 柜格里的凹槽阴影，让罐头像真的摆在柜子里 */
.ix-cab-slot{position:absolute;left:50%;bottom:2.4cqw;transform:translateX(-50%);
  width:9cqw;height:1.1cqw;border-radius:50%;background:rgba(70,40,18,.35);
  filter:blur(.35cqw);pointer-events:none}
.ix-can-pick{position:relative;background:transparent;border:0;border-radius:0;
  box-shadow:none;padding:.4cqw .8cqw;display:flex;flex-direction:column;align-items:center;
  cursor:pointer;transition:transform .35s ease,opacity .35s}
.ix-can-pick img{display:block;width:11cqw;height:11cqw;object-fit:contain;
  filter:drop-shadow(0 .8cqw 1.2cqw rgba(0,0,0,.5));transition:transform .35s ease,filter .35s}
.ix-can-pick small{display:block;margin-top:.4cqw;font-size:1.25cqw;color:#4a2e18;
  background:rgba(255,240,215,.8);padding:.15cqw 1cqw;border-radius:99px;white-space:nowrap}
.ix-can-pick:hover{transform:translateY(-.8cqw)}
.ix-can-pick:hover img{transform:scale(1.06)}
.ix-can-pick.chosen{transform:translateY(-2.4cqw) scale(1.12);opacity:1}
.ix-can-pick.chosen img{transform:scale(1.22);filter:drop-shadow(0 1.4cqw 2cqw rgba(0,0,0,.55))}
.ix-can-pick:not(.chosen){opacity:1;transform:scale(1)}
/* 非选罐阶段：柜子收起，画面交给开罐器 */
.ix-can-scene[data-phase="open"] .ix-cabinet,
.ix-can-scene[data-phase="opened"] .ix-cabinet,
.ix-can-scene[data-phase="floor"] .ix-cabinet,
.ix-can-scene[data-phase="waiting"] .ix-cabinet,
.ix-can-scene[data-phase="empty"] .ix-cabinet{opacity:0;pointer-events:none;
  transform:translate(-50%,-58%) scale(.94)}
.ix-can-empty-hint{position:absolute;left:50%;bottom:3cqw;transform:translateX(-50%);font-size:1.15cqw;color:#fff;opacity:.85}

/* ---------- G4–G7 大扫除 ---------- */
/* 拖拽铲屎/拖地时禁止浏览器选中文字、图片，避免出现蓝色「被选中」高亮 */
.ix-clean-scene{position:absolute;inset:0;pointer-events:auto;
  -webkit-user-select:none;user-select:none;-webkit-user-drag:none}
.ix-clean-scene img,.ix-clean-scene button{-webkit-user-select:none;user-select:none;
  -webkit-user-drag:none;touch-action:none}
.ix-clean-scene ::selection{background:transparent}
.ix-clean-field{position:absolute;border:.12cqw dashed rgba(255,255,255,.4);border-radius:2cqw;overflow:hidden;
  box-shadow:inset 0 0 4cqw rgba(0,0,0,.1)}
.ix-clean-scene .ix-hint{max-width:80cqw;white-space:normal;text-align:center;line-height:1.5}
.ix-clean-progress{position:absolute;right:2.4cqw;top:2.6cqw;z-index:6;
  background:rgba(255,250,240,.94);color:#8a5f36;border:.15cqw solid #e6cda6;
  border-radius:1cqw;padding:.7cqw 1.4cqw;font-size:1.15cqw;font-weight:600;pointer-events:none;
  box-shadow:0 .3cqw 1cqw rgba(0,0,0,.14)}
.ix-dirt-layer,.ix-hidden-fur,.ix-shine,.ix-grid,.ix-clumps{position:absolute;inset:0;pointer-events:none}
/* 细小毛发：照着地板素材里那种一根根细丝画，不再是又大又圆的斑点 */
.ix-furball{position:absolute;width:2.6cqw;height:.26cqw;border-radius:99px;
  background:linear-gradient(90deg,rgba(90,76,58,.1),#6b5944 25%,#8b765c 70%,rgba(90,76,58,.05));
  opacity:.9;box-shadow:0 .08cqw .12cqw rgba(90,76,58,.32);transition:opacity .5s,transform .5s}
.ix-furball::after{content:'';position:absolute;left:26%;top:100%;width:55%;height:.2cqw;border-radius:99px;
  background:linear-gradient(90deg,rgba(90,76,58,.05),#7a6650 40%,rgba(90,76,58,.05))}
.ix-furball{transform:rotate(var(--deg,0deg))}
.ix-furball.gone{opacity:0;transform:scale(.2)}
.ix-furball.swept{opacity:.12;transform:rotate(50deg) scale(.4);filter:blur(.12cqw)}
/* 第一遍被粘毛器蹭松、还没卷走的毛：颜色变浅、微微翘起，提示"再滚一遍" */
.ix-furball.loosened:not(.swept){opacity:.72;transform:rotate(var(--deg,0deg)) scale(1.18);
  box-shadow:0 0 .2cqw rgba(150,125,95,.6)}
/* 被粘毛器卷走、飘向刷头的毛絮 */
.ix-fur-flies{position:absolute;inset:0;pointer-events:none;z-index:5}
.ix-fur-fly{position:absolute;width:2.4cqw;height:.24cqw;border-radius:99px;
  background:linear-gradient(90deg,rgba(120,105,85,.05),#8b765c 40%,#b5a287 75%,rgba(120,105,85,.05));
  box-shadow:0 0 .3cqw rgba(120,105,85,.5);display:block}
.ix-dirt-layer[data-level="1"] .ix-furball{opacity:.7}
.ix-dirt-layer[data-level="2"] .ix-furball{opacity:.5}
.ix-dirt-layer[data-level="3"] .ix-furball{opacity:.2}
.ix-hidden-fur i{position:absolute;width:2.2cqw;height:2.2cqw;border-radius:50%;
  background:radial-gradient(circle,#d97b6b 0 22%,transparent 26%),radial-gradient(circle at 70% 65%,#d97b6b 0 16%,transparent 20%);
  opacity:0;transition:opacity .8s;filter:drop-shadow(0 0 .3cqw rgba(180,80,70,.5))}
/* 除螨仪这一步：先把肉眼看不见的螨照出来（细密红点），再推一遍清掉 */
.ix-clean-scene[data-state="fur-revealed"] .ix-hidden-fur i,
.ix-clean-scene[data-state="mite-on"] .ix-hidden-fur i{opacity:.95}
.ix-clean-scene[data-state="mite-clear"] .ix-hidden-fur i,
.ix-clean-scene[data-state="done"] .ix-hidden-fur i{opacity:0}
.ix-hidden-fur i.cleared{opacity:0!important;transform:scale(.2);filter:none}
.ix-shine{background:linear-gradient(115deg,transparent 30%,rgba(255,255,255,.55) 50%,transparent 70%);opacity:0}
.ix-shine.shine{animation:shineSweep 1s ease}
@keyframes shineSweep{0%{opacity:0;transform:translateX(-40%)}40%{opacity:1}100%{opacity:0;transform:translateX(40%)}}
.ix-grid{display:grid;grid-template-columns:repeat(8,1fr);grid-template-rows:repeat(5,1fr);pointer-events:none}
.ix-cell{border:0;transition:background .18s}
.ix-cell.covered{background:radial-gradient(ellipse at center,rgba(255,252,232,.55) 0%,rgba(255,248,220,.22) 60%,transparent 100%)}
/* 拖地湿痕：拖头扫过的地方透出擦干净的暖白亮泽，不再盖蓝色水光 */
.ix-wet-layer{position:absolute;inset:0;pointer-events:none;z-index:0;overflow:hidden;transition:opacity .5s ease-out}
.ix-wet-layer.drying{opacity:0}
.ix-wet-cell{position:absolute;width:5cqw;height:2.6cqw;opacity:0;transform:translate(-50%,-50%) scale(.4) rotate(var(--r,0deg));
  background:radial-gradient(ellipse at 45% 40%,rgba(255,253,238,.30) 0%,rgba(255,248,225,.18) 50%,rgba(255,250,238,.06) 78%,transparent 100%);
  border-radius:46% 54% 50% 50% / 60% 45% 55% 40%;
  transition:opacity .5s ease-out,transform .5s ease-out}
.ix-wet-cell.on{opacity:1;transform:translate(-50%,-50%) scale(1) rotate(var(--r,0deg))}
/* 拖地关不要整格米白高光，水痕才是「湿」的视觉 */
.ix-clean-scene[data-kind="mop"] .ix-cell.covered{background:none}
/* 最后一遍全净后湿痕一起淡出，露出干净木地板 */
.ix-clean-scene[data-state="done"] .ix-wet-layer{opacity:0;transition:opacity 1s ease-out}
/* 拖把放大：素材是长杆+底部平板拖头，拖头底部对准拖的落点 */
.ix-clean-scene[data-kind="mop"] .ix-brush{width:17cqw;height:17cqw;
  transform:translate(-50%,-94%) rotate(-6deg)}
.ix-clean-scene[data-kind="mop"] .ix-brush img.tool-real{object-position:center bottom}
.ix-clump{position:absolute;width:3.6cqw;height:3.2cqw;border-radius:45% 55% 48% 52%;background:#9c8a6f;
  border:.2cqw solid #7b6a52;opacity:0;transform:scale(.4);pointer-events:none;transition:.4s;cursor:pointer}
.ix-clump.revealed{opacity:1;transform:scale(1);pointer-events:auto;animation:clumpWobble 1.4s ease-in-out infinite alternate}
.ix-clump.removed{opacity:0;transform:scale(.1) translateY(-3cqw);pointer-events:none}
@keyframes clumpWobble{to{transform:scale(1.08) rotate(6deg)}}
.ix-bucket{position:absolute;width:8cqw;height:9cqw;background:#b9c9c0;border:.3cqw solid #8fb5ac;border-radius:.6cqw  .6cqw 1.4cqw 1.4cqw;
  display:flex;align-items:flex-end;justify-content:center;pointer-events:none;transition:.5s;z-index:3}
.ix-bucket span{font-size:.85cqw;color:#4f6c65;margin-bottom:.4cqw;white-space:nowrap}
.ix-clean-scene[data-state="soaped"] .ix-bucket{background:#a9d8d2;box-shadow:0 0 2cqw rgba(160,220,210,.9)}
.ix-clean-scene[data-state="soaped"] .ix-bucket::before{content:'◌ ◌ ○';position:absolute;top:-1.4cqw;font-size:1.4cqw;color:#fff}
.ix-toolbar{position:absolute;left:50%;bottom:3cqw;transform:translateX(-50%);z-index:6;display:flex;gap:1cqw;flex-wrap:wrap;justify-content:center}
.ix-tool{background:#fffaf0;border-radius:.9cqw;padding:.9cqw 1.5cqw;font-size:1.35cqw;
  box-shadow:0 .5cqw 1.4cqw rgba(0,0,0,.24);border:.22cqw solid transparent;touch-action:none}
.ix-tool:hover{border-color:#e9a76a}
.ix-tool.reject{animation:rejectShake .4s}
@keyframes rejectShake{25%{transform:translateX(-.7cqw)}50%{transform:translateX(.7cqw)}75%{transform:translateX(-.4cqw)}}
.ix-brush{position:absolute;transform:translate(-50%,-50%);z-index:7;font-size:1.3cqw;background:rgba(255,250,240,.95);
  border-radius:99px;padding:.5cqw 1cqw;box-shadow:0 .4cqw 1cqw rgba(0,0,0,.25);pointer-events:none;
  opacity:0;transition:opacity .15s;white-space:nowrap}
.ix-brush.on{opacity:1}

/* ---------- G8 连拍 3 张 ---------- */
.ix-photo-scene{position:absolute;inset:0;overflow:hidden;background:#2a211b}
/* 大屏取景：我们的房间大画面铺满，猫在里面走，四周压暗+四角取景框 */
.ix-cam-big{position:absolute;inset:0;overflow:hidden}
.ix-cam-room{position:absolute;inset:0}
.ix-cam-room svg{display:block;width:100%;height:100%}
/* 拍照画面用真实整景照片铺满取景框（按猫种/姿势换图） */
.ix-cam-real{display:block;width:100%;height:100%;object-fit:cover}
.ix-vf-cat{position:absolute;top:62%;transform:translate(-50%,-50%);transition:left .06s linear;z-index:3;
  filter:drop-shadow(0 .8cqw 1cqw rgba(0,0,0,.28))}
.ix-vf-cat svg{display:block;width:auto;height:auto}
.ix-vf-cat.dashing{filter:blur(.4cqw) drop-shadow(-1.6cqw 0 .5cqw rgba(120,100,80,.55))}
.ix-cam-shade{position:absolute;inset:0;z-index:2;pointer-events:none;
  box-shadow:inset 0 0 14cqw 5cqw rgba(20,14,9,.42);
  background:linear-gradient(180deg,rgba(20,14,9,.28) 0,transparent 16%,transparent 78%,rgba(20,14,9,.42) 100%)}
.ix-cam-frame{position:absolute;left:12cqw;right:12cqw;top:13cqw;bottom:16cqw;z-index:4;pointer-events:none;
  box-shadow:0 0 0 9999px rgba(24,17,11,.32)}
.cam-corner{position:absolute;width:3cqw;height:3cqw;border-color:rgba(255,255,255,.94);border-style:solid}
.cam-corner.c1{top:-.2cqw;left:-.2cqw;border-width:.32cqw 0 0 .32cqw;border-radius:.8cqw 0 0 0}
.cam-corner.c2{top:-.2cqw;right:-.2cqw;border-width:.32cqw .32cqw 0 0;border-radius:0 .8cqw 0 0}
.cam-corner.c3{bottom:-.2cqw;left:-.2cqw;border-width:0 0 .32cqw .32cqw;border-radius:0 0 0 .8cqw}
.cam-corner.c4{bottom:-.2cqw;right:-.2cqw;border-width:0 .32cqw .32cqw 0;border-radius:0 0 .8cqw 0}
.ix-cam-top{position:absolute;top:2.6cqw;left:0;right:0;z-index:5;text-align:center;
  color:#fff;font-size:1.5cqw;letter-spacing:.5cqw;font-weight:600;text-shadow:0 .2cqw .5cqw rgba(0,0,0,.5)}
.ix-cam-count{position:absolute;top:5cqw;left:0;right:0;z-index:5;text-align:center;
  color:rgba(255,255,255,.9);font-size:1.3cqw;letter-spacing:.2cqw;font-weight:700;text-shadow:0 .2cqw .5cqw rgba(0,0,0,.5)}
.ix-cam-hint{position:absolute;top:8.4cqw;left:0;right:0;z-index:5;text-align:center;
  color:rgba(255,255,255,.88);font-size:1.2cqw;letter-spacing:.15cqw;text-shadow:0 .2cqw .5cqw rgba(0,0,0,.5)}
.ix-shutter{position:absolute;bottom:2.6cqw;left:50%;transform:translateX(-50%);z-index:6;
  width:7.4cqw;height:7.4cqw;border-radius:50%;background:#fff;border:.7cqw solid rgba(255,255,255,.5);
  box-shadow:0 .6cqw 1.8cqw rgba(0,0,0,.4);cursor:pointer}
.ix-shutter:after{content:'';position:absolute;inset:1cqw;border-radius:50%;background:linear-gradient(135deg,#f0b98a,#f6d7a8)}
.ix-shutter:active{transform:translateX(-50%) scale(.9)}
/* 快门引导：呼吸光圈 + 手指提示，一眼就知道点这里拍 */
.ix-shutter-pulse{position:absolute;bottom:1.4cqw;left:50%;transform:translateX(-50%);z-index:5;
  width:10.6cqw;height:10.6cqw;border:.34cqw solid #ffe1a8;border-radius:50%;pointer-events:none;
  box-shadow:0 0 1.6cqw rgba(255,208,128,.75),inset 0 0 1.2cqw rgba(255,208,128,.4);
  animation:shutterPulse 1.5s ease-out infinite}
@keyframes shutterPulse{0%{transform:translateX(-50%) scale(.86);opacity:.95}70%{transform:translateX(-50%) scale(1.12);opacity:.25}100%{transform:translateX(-50%) scale(1.12);opacity:0}}
.ix-cam-tap{position:absolute;bottom:11.6cqw;left:50%;transform:translateX(-50%);z-index:7;
  padding:.65cqw 1.7cqw;border-radius:2cqw;background:rgba(255,250,238,.95);color:#9a622c;
  font-size:1.45cqw;font-weight:800;letter-spacing:.1cqw;white-space:nowrap;pointer-events:none;
  box-shadow:0 .5cqw 1.6cqw rgba(0,0,0,.35);animation:camTapBob 1.15s ease-in-out infinite}
.ix-cam-tap:after{content:'';position:absolute;left:50%;bottom:-.7cqw;transform:translateX(-50%);
  border-left:.7cqw solid transparent;border-right:.7cqw solid transparent;border-top:.8cqw solid rgba(255,250,238,.95)}
@keyframes camTapBob{0%,100%{transform:translateX(-50%) translateY(0)}50%{transform:translateX(-50%) translateY(-.45cqw)}}
.ix-photo-scene[data-shot="3"] .ix-cam-tap,.ix-photo-scene[data-shot="3"] .ix-shutter-pulse{opacity:0;transition:opacity .3s}
/* 每张拍完的结果页：第N张/共3张 + 专属提示 + 继续/发给朋友 */
.ix-photo-result{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%) scale(.9);
  width:34cqw;padding:2cqw;background:#fffaf0;border-radius:1.6cqw;box-shadow:0 2cqw 6cqw rgba(0,0,0,.5);
  display:none;flex-direction:column;align-items:center;gap:1.4cqw;z-index:8}
.ix-photo-result.show{display:flex;animation:prIn .4s cubic-bezier(.2,1.3,.4,1) forwards}
@keyframes prIn{to{transform:translate(-50%,-50%) scale(1)}}
.ix-pr-card{display:flex;align-items:center;gap:1.4cqw;width:100%}
.ix-pr-photo{width:14cqw;height:10cqw;flex:none;border-radius:.7cqw;overflow:hidden;
  background:linear-gradient(140deg,#e9d9bd,#c9b79a);border:.35cqw solid #fff;box-shadow:0 .4cqw 1cqw rgba(0,0,0,.2)}
.ix-pr-pic{width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:7cqw}
.ix-pr-pic.half{clip-path:inset(0 42% 0 0)}
.ix-pr-pic.blur{filter:blur(.5cqw);opacity:.75}
.ix-pr-pic.empty{opacity:.6}
.ix-real-shot{display:block;width:100%;height:100%;object-fit:cover;border-radius:.4cqw}
.ix-pr-meta{flex:1;min-width:0}
.ix-pr-count{font-size:1.5cqw;font-weight:700;color:#5c4632;margin-bottom:.5cqw}
.ix-pr-tip{font-size:1.2cqw;color:#8a7157;line-height:1.5}
.ix-pr-next{padding:.9cqw 2.6cqw;font-size:1.35cqw}
.ix-shots{position:absolute;left:2.4cqw;bottom:2.4cqw;display:flex;gap:1cqw;z-index:7}
.ix-shot{width:12cqw;background:#fffaf0;border-radius:.7cqw;padding:.5cqw;text-align:center;
  box-shadow:0 .5cqw 1.4cqw rgba(0,0,0,.3)}
.ix-shot-pic{height:8cqw;display:flex;align-items:center;justify-content:center;font-size:5cqw;
  background:linear-gradient(140deg,#e9d9bd,#c9b79a);border-radius:.4cqw;overflow:hidden}
.ix-shot.half .ix-shot-pic{clip-path:inset(0 42% 0 0)}
.ix-shot.blur .ix-shot-pic{filter:blur(.32cqw);opacity:.75}
.ix-shot.empty .ix-shot-pic{opacity:.6}
.ix-shot-pic img{display:block;width:100%;height:100%;object-fit:cover;border-radius:.35cqw}
.ix-shot small{font-size:.85cqw;color:#7b654e;display:block;margin-top:.3cqw;line-height:1.3}
.ix-shot.dropin{animation:shotDrop .55s cubic-bezier(.2,1.2,.4,1)}
@keyframes shotDrop{from{opacity:0;transform:translateY(-6cqw) scale(.5) rotate(-8deg)}}

/* ---------- G9 抢猫：助手式说明 + 剧情值倒退 + 必输结局 ---------- */
.ix-snatch-scene{position:absolute;inset:0;background:rgba(35,28,23,.6);display:flex;
  flex-direction:column;align-items:center;justify-content:center;padding-top:5cqw}
/* 抢猫整场真实分帧图：侧脸拉扯 → 医生抱走 */
.ix-snatch-art{position:absolute;inset:0;z-index:0;overflow:hidden;background:#2d2520}
.ix-snatch-frame{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.ix-snatch-scene[data-state="taken"] .ix-snatch-frame{filter:brightness(.92)}
.ix-snatch-ui{position:relative;z-index:8;margin-top:auto;margin-bottom:2.5cqw;
  display:flex;flex-direction:column;align-items:center}
.ix-snatch-brief{position:absolute;left:50%;top:5cqw;transform:translateX(-50%);width:84cqw;z-index:8;
  background:rgba(255,250,240,.97);border-radius:1.2cqw;padding:1.1cqw 1.6cqw;text-align:center;
  box-shadow:0 .5cqw 1.6cqw rgba(0,0,0,.22)}
.ix-snatch-helper{display:inline-block;background:#6b9a92;color:#fff;font-size:1.15cqw;font-weight:700;
  border-radius:99px;padding:.25cqw 1cqw;margin-bottom:.35cqw;letter-spacing:.08em}
.ix-snatch-intro{font-size:2cqw;color:#4d4038;font-weight:700;line-height:1.3}
.ix-snatch-rule{font-size:1.35cqw;color:#806d5c;line-height:1.4;margin-top:.25cqw}
.ix-tug-stage{position:relative;width:72cqw;height:19cqw;margin-top:6cqw;display:flex;align-items:center;justify-content:center}
.ix-role{position:absolute;bottom:.5cqw;display:flex;flex-direction:column;align-items:center;z-index:3;
  filter:drop-shadow(0 .6cqw 1cqw rgba(0,0,0,.3))}
.ix-role span{font-size:6.2cqw;line-height:1}
.ix-role b{font-size:1cqw;color:#fff;background:rgba(45,36,28,.7);border-radius:99px;
  padding:.15cqw .9cqw;margin-top:.2cqw;white-space:nowrap}
.ix-role-me{left:5cqw}
.ix-role-doc{right:6cqw}
.ix-tug-rope{position:absolute;left:18%;right:18%;top:42%;height:.35cqw;
  background:repeating-linear-gradient(90deg,#d8c3a4 0 1.4cqw,transparent 1.4cqw 2cqw);z-index:1}
.ix-grab-cat{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:4}
.ix-grab-cat svg{display:block;filter:drop-shadow(0 .6cqw 1cqw rgba(0,0,0,.3))}
.ix-door{position:absolute;right:-3cqw;top:-1cqw;width:10cqw;height:20cqw;background:#e8f2ef;border:.4cqw solid #8fb5ac;
  border-radius:.6cqw;display:flex;align-items:center;justify-content:center;opacity:.35;transition:.5s}
.ix-door span{background:#d2604c;color:#fff;font-size:1.1cqw;padding:.5cqw .8cqw;border-radius:.4cqw;
  letter-spacing:.15em;opacity:0;transition:.4s}
.ix-snatch-scene[data-state="taken"] .ix-door{opacity:1}
.ix-snatch-scene[data-state="taken"] .ix-door span{opacity:1}
.ix-snatch-scene[data-state="taken"] .ix-grab-cat{opacity:0;transition:.9s}
.ix-snatch-status{font-size:1.4cqw;color:#fff;background:rgba(45,36,28,.72);border-radius:99px;
  padding:.4cqw 1.6cqw;margin-top:.2cqw;min-height:2.2cqw}
.ix-snatch-status.flash{animation:snatchFlash .38s ease-out}
@keyframes snatchFlash{0%{transform:scale(1)}45%{transform:scale(1.06);background:#b5703a}100%{transform:scale(1)}}
.ix-snatch-meter{width:46cqw;margin-top:.8cqw}
.ix-snatch-meter-head{display:flex;justify-content:space-between;align-items:baseline;
  font-size:1.3cqw;color:#fff;margin-bottom:.35cqw}
.ix-snatch-meter-head b{font-size:1.5cqw;letter-spacing:.08em}
.ix-snatch-meter-head span{font-variant-numeric:tabular-nums}
.ix-snatch-bar{width:100%;height:1.7cqw;background:#efe0c9;border-radius:99px;overflow:hidden}
.ix-snatch-bar i{display:block;height:100%;width:100%;background:linear-gradient(90deg,#8fb5ac,#e9a76a);transition:width .16s linear}
.ix-snatch-scene.is-critical .ix-snatch-bar i{background:linear-gradient(90deg,#d2604c,#9e3f36);animation:snatchPulse .7s infinite alternate}
@keyframes snatchPulse{to{filter:brightness(1.25)}}
.ix-grab-btn{width:11cqw;height:11cqw;border-radius:50%;background:#e9a76a;color:#fff;font-size:2.4cqw;font-weight:800;
  margin-top:1cqw;box-shadow:0 .8cqw 2cqw rgba(210,140,70,.4);transition:transform .08s}
.ix-grab-btn:active{transform:scale(.92)}
.ix-grab-pop{position:absolute;right:25cqw;bottom:10cqw;z-index:7;font-size:1.7cqw;font-weight:800;color:#ffe8b8;
  text-shadow:0 .2cqw .5cqw rgba(0,0,0,.5);pointer-events:none;animation:snatchPop .9s ease-out forwards}
@keyframes snatchPop{0%{opacity:0;transform:translateY(.6cqw) scale(.8)}25%{opacity:1}100%{opacity:0;transform:translateY(-3cqw) scale(1.1)}}
.ix-snatch-overlay{position:absolute;inset:0;z-index:9;display:flex;align-items:center;justify-content:center;
  background:rgba(30,24,20,.62);opacity:0;pointer-events:none;transition:opacity .35s}
.ix-snatch-overlay.show{opacity:1;pointer-events:auto}
.ix-snatch-end-card{width:54cqw;background:rgba(255,250,240,.97);border-radius:1.4cqw;
  padding:2.4cqw 3cqw;text-align:center;box-shadow:0 1.4cqw 4cqw rgba(0,0,0,.3);transform:translateY(.8cqw)}
.ix-snatch-overlay.show .ix-snatch-end-card{transform:translateY(0);transition:transform .35s}
.ix-snatch-end-title{font-size:1.9cqw;color:#8a5f36;font-weight:700;margin-bottom:1cqw}
.ix-snatch-end-lines p{font-size:1.5cqw;line-height:1.65;color:#5c6f6a;opacity:0;transform:translateY(.5cqw)}
.ix-snatch-end-lines p.show{animation:snatchLine .5s ease-out forwards}
@keyframes snatchLine{to{opacity:1;transform:translateY(0)}}
.ix-snatch-end-actions{display:flex;gap:1.2cqw;justify-content:center;margin-top:1.6cqw}
.ix-snatch-continue{font-size:1.45cqw;font-weight:700;border-radius:99px;
  padding:.65cqw 2cqw;transition:transform .08s;background:#6b9a92;color:#fff}
.ix-snatch-continue:active{transform:scale(.96)}

/* 到家第一步：真实猫包放在红圈位置（右下约 84%,57%），按品种换图 */
.carrier-prop{position:absolute;width:19cqw;height:19cqw;transform:translate(-50%,-50%);
  z-index:3;pointer-events:none;filter:drop-shadow(0 .6cqw .8cqw rgba(60,40,20,.3))}
.carrier-prop img{width:100%;height:100%;object-fit:contain;display:block}
.carrier-prop.opened{animation:carrierOpen .55s cubic-bezier(.2,1.2,.4,1)}
@keyframes carrierOpen{0%{transform:translate(-50%,-50%) scale(.94)}60%{transform:translate(-50%,-53%) scale(1.04)}100%{transform:translate(-50%,-50%) scale(1)}}
/* L6 猫从猫包窜出：整屏切到按品种的真实插画（用户 19:40 提供，1600×900）。
   原先那只 Art.cat() 画的深色简笔「小黑人」沿轨迹跑的动画已弃用。 */
.carrier-jump{position:absolute;inset:0;z-index:6;pointer-events:none;overflow:hidden;
  opacity:0;background:#1b1612;transition:opacity .34s ease}
.carrier-jump[data-phase="in"]{opacity:1}
.carrier-jump[data-phase="out"]{opacity:0}
.carrier-jump .cj-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.carrier-jump .cj-fallback{position:absolute;left:50%;top:55%;transform:translate(-50%,-50%)}
/* 两段镜头：① 从猫包窜出 → ② 一头钻进沙发底。
   可见性靠 JS 硬切 display（不依赖 CSS 过渡时钟），推近只是让画面更像电影。 */
.carrier-jump .cj-under,.carrier-jump .cj-dive{display:none}
.carrier-jump .cj-jump{animation:cjPush 2.6s cubic-bezier(.2,.72,.24,1) both}
.carrier-jump[data-shot="under"] .cj-jump,
.carrier-jump[data-shot="under"] .cj-fallback{display:none}
.carrier-jump[data-shot="under"] .cj-under{display:block;animation:cjPush 2.8s cubic-bezier(.2,.72,.24,1) both}
/* 家 L6 第二段：紧接窜出之后的「钻进沙发底」整幅真实插画，播完由 JS 淡出退场 */
.carrier-jump[data-shot="dive"] .cj-jump,
.carrier-jump[data-shot="dive"] .cj-fallback{display:none}
.carrier-jump[data-shot="dive"] .cj-dive{display:block;animation:cjPush 2.8s cubic-bezier(.2,.72,.24,1) both}
@keyframes cjPush{from{transform:scale(1.07) translateX(-1.4%)}to{transform:scale(1) translateX(0)}}
/* 到家第一步：猫在右边太空舱（黑笼子）里，只露出小小的身影（无真实素材时兜底） */
.cage-cat{position:absolute;left:91.9%;top:46.5%;transform:translate(-50%,-50%) scale(.62);
  z-index:3;filter:brightness(.72) drop-shadow(0 .3cqw .4cqw rgba(0,0,0,.4));pointer-events:none;
  opacity:.9;animation:cagePeek .9s ease-in-out infinite alternate}
@keyframes cagePeek{from{transform:translate(-50%,-50%) scale(.6)}to{transform:translate(-50%,-48%) scale(.65)}}

/* ---------- L 系列当场画面反馈 ---------- */
.ix-shadow-scene{position:absolute;inset:0;pointer-events:none;z-index:6}
/* 开舱：从舱口拉出一道白光 */
.ix-run-trail{position:absolute;left:78%;top:49%;width:16cqw;height:2.4cqw;z-index:4;
  background:linear-gradient(90deg,rgba(255,250,235,0),rgba(255,250,235,.9));
  border-radius:99px;transform:translateY(-50%) scaleX(0);transform-origin:right center;
  animation:trailPull 1s ease-out forwards}
@keyframes trailPull{0%{transform:translateY(-50%) scaleX(0);opacity:0}
  30%{opacity:.9}100%{transform:translateY(-50%) scaleX(1);opacity:0}}
/* 真的那只猫：从舱口窜向沙发底，位置由 Web Animations 逐帧推进 */
.ix-run-cat{position:absolute;left:89%;top:45%;z-index:5;transform:translate(-50%,-50%);opacity:0;
  filter:drop-shadow(0 .7cqw 1cqw rgba(0,0,0,.45))}
.ix-run-cat svg{display:block}
/* 窜过去时脚下扬起的小灰尘 */
.ix-run-dust{position:absolute;left:73%;top:66%;width:9cqw;height:2.6cqw;z-index:4;opacity:0;
  background:radial-gradient(ellipse at center,rgba(230,214,190,.9),rgba(230,214,190,0) 70%);
  border-radius:50%;animation:dustPuff 1s .35s ease-out forwards}
@keyframes dustPuff{0%{transform:scale(.3);opacity:0}40%{opacity:.8}100%{transform:scale(1.4);opacity:0}}
.ix-sofa-silhouette{position:absolute;left:70%;top:68%;transform:translate(-50%,-50%) scale(.45);
  opacity:0;z-index:4;transition:opacity .6s,transform .6s}
.ix-shadow-scene.landed .ix-sofa-silhouette{opacity:.6;transform:translate(-50%,-50%) scale(.62)}
#stage.zoom-sofa #scene-layer{transform:scale(1.16) translateY(6%);filter:brightness(.65);transition:transform .6s,filter .6s}
.stamp.drop{animation:stampDrop .55s cubic-bezier(.2,1.4,.4,1)}
@keyframes stampDrop{0%{opacity:0;transform:translateY(-8cqw) rotate(-40deg) scale(2)}
  65%{opacity:.9;transform:rotate(-14deg) scale(1.1)}100%{opacity:.88;transform:rotate(-18deg) scale(1)}}
.contract.stamped{animation:paperCurl .6s ease}
@keyframes paperCurl{50%{transform:translate(-50%,-50%) rotate(-1.2deg) scale(1.01)}}
.picked-seal{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%) rotate(-16deg);
  border:.4cqw solid #d2604c;color:#d2604c;border-radius:50%;width:8cqw;height:8cqw;
  display:flex;align-items:center;justify-content:center;font-size:1.6cqw;font-weight:800;
  background:rgba(255,250,240,.75);opacity:0;letter-spacing:.1em}
.picked-seal.drop{animation:sealDrop .55s cubic-bezier(.2,1.4,.4,1) forwards}
@keyframes sealDrop{to{opacity:.92;transform:translate(-50%,-50%) rotate(-16deg) scale(1)}}
.poster-card.dim{opacity:.3;transform:scale(.9)}
.poster-card.chosen{transform:translateY(-1.4cqw) scale(1.08);background:#fbe7c8}
.poster-card.locked-out{opacity:.22;filter:grayscale(1)}
.poster-card.picked{transform:scale(1.06);border-color:#d2604c}
.flip-card{transform-style:preserve-3d;transition:transform .55s}
.flip-card.pop{animation:cardPop .35s ease}
@keyframes cardPop{from{opacity:0;transform:translate(-50%,-50%) scale(.86)}}
.pd-face{backface-visibility:hidden}
.pd-face.back{position:absolute;inset:0;transform:rotateY(180deg);background:#fff3e6;padding:1.8cqw 2.2cqw;
  border-radius:1.4cqw;display:flex;flex-direction:column;justify-content:center}
.flip-card.flipped{transform:translateX(-50%) rotateY(180deg)}
.flip-card.flipped .pd-face.front{pointer-events:none}
.gender-preview{height:11cqw;margin:1.4cqw 0 .4cqw}
.gp-frame{height:100%;border-radius:1cqw;border:.25cqw dashed #d8bd97;display:flex;
  align-items:center;justify-content:center;flex-direction:column}
.gp-art{font-size:4cqw}
.gp-frame small{font-size:1.1cqw;color:#8a7157}
.gender-preview.swap{animation:tipIn .35s ease}
.choice-btn.chosen{transform:scale(1.05);background:#fbe7c8;border-color:#e9a76a}
.choice-btn.fade{opacity:.18;transform:scale(.94)}
.map-page.leaving{animation:mapLeave .32s ease forwards}
@keyframes mapLeave{to{opacity:0;transform:scale(1.04)}}
.center-card.flip{animation:pageFlip .5s ease}
@keyframes pageFlip{0%{transform:translate(-50%,-50%) rotateY(-70deg) scale(.9);opacity:.3}
  100%{transform:translate(-50%,-50%) rotateY(0) scale(1);opacity:1}}
.ix-can-scene[data-phase="empty"]{background:transparent}
/* 30 分钟后：空碗摆在首页房间场景的地板上（真实碗，不再画简笔猫、不再悬浮展示） */
.ix-can-empty-wrap{position:absolute;left:73%;top:70%;transform:translate(-50%,-50%);width:20cqw;height:11cqw;z-index:5}
.ix-can-scene[data-phase="empty"] .ix-can-floor{position:absolute;left:50%;top:50%;width:14cqw;height:14cqw;
  opacity:1;transform:translate(-50%,-50%) scale(1)}
.ix-can-scene[data-phase="empty"] .ix-bowl-wrap{width:100%;height:100%}
.ix-can-empty-cat{display:none!important}
.ix-can-empty-badge{position:absolute;left:73%;top:58%;transform:translateX(-50%);z-index:6;
  font-size:1.5cqw;font-weight:700;color:#5a7d5a;background:rgba(255,252,240,.94);
  border:.25cqw solid #9dbd96;border-radius:99px;padding:.5cqw 1.5cqw;box-shadow:0 .5cqw 1.6cqw rgba(0,0,0,.18);
  animation:badgePop .6s cubic-bezier(.2,1.5,.5,1) both}
@keyframes badgePop{from{opacity:0;transform:translateX(-50%) scale(.6)}to{opacity:1;transform:translateX(-50%) scale(1)}}
.ix-can-scene[data-phase="empty"] .ix-can-empty-hint{bottom:3.4cqw;color:#6b5947;opacity:.95;font-size:1.25cqw}

/* ---------- 新增：氛围字幕（玩家第一人称，画面下方逐条浮现） ---------- */
.ix-muse{position:absolute;left:50%;bottom:11cqw;transform:translateX(-50%);z-index:8;
  width:56cqw;text-align:center;pointer-events:auto;cursor:pointer}
.ix-muse-line{margin:0;padding:1cqw 2cqw;background:linear-gradient(90deg,rgba(40,32,26,0),rgba(40,32,26,.78) 18%,rgba(40,32,26,.78) 82%,rgba(40,32,26,0));
  color:#fff4e2;font-size:1.55cqw;line-height:1.7;letter-spacing:.05em;min-height:3.6cqw;text-shadow:0 .15cqw .4cqw rgba(0,0,0,.5)}
.ix-muse-line.in{animation:museIn .5s ease}
@keyframes museIn{from{opacity:0;transform:translateY(1cqw)}to{opacity:1;transform:translateY(0)}}
.ix-muse-next{display:inline-block;margin-top:.6cqw;font-size:.95cqw;color:rgba(255,244,226,.6);letter-spacing:.12em}

/* ---------- 新增：开罐后猫从远处慢慢靠近 ---------- */
.ix-can-cat{position:absolute;bottom:16cqw;transform:translateX(-50%);z-index:4;
  transition:left .26s linear,filter .5s;filter:brightness(.7)}
.ix-can-cat svg{display:block}
.ix-can-cat.near{filter:brightness(1)}
/* 开罐后猫停在左侧远处观望：不与地上的罐头重叠，也不凑过去吃 */
.ix-can-cat.waiting-cat{filter:brightness(.58);bottom:19cqw;animation:canWait 3.4s ease-in-out infinite}
@keyframes canWait{0%,100%{transform:translateX(-50%) translateY(0) rotate(-1deg)}
  50%{transform:translateX(-50%) translateY(-.5cqw) rotate(1deg)}}

/* ---------- 新增：伸手时「退回放松」与大扫除遍间停顿 ---------- */
.ix-hand-scene.calm .ix-cat-slot{transition:filter .5s,transform .5s}
.ix-clean-scene[data-state="between"] .ix-clean-field{filter:brightness(1.12)}
.ix-clean-scene[data-state="between"] .ix-dirt-layer{opacity:.5;transition:opacity .5s}

/* ---------- 医院 · 绝育手术 G10 ---------- */
.ix-surgery-scene{position:absolute;inset:0;overflow:hidden;background:#cddde1}
.ix-surg-art{position:absolute;inset:0;opacity:.96}
.ix-surg-cat{position:absolute;left:50%;top:52%;transform:translate(-50%,-50%);z-index:4;cursor:grab;
  transition:filter .6s,transform .6s}
.ix-surg-cat svg{display:block;filter:drop-shadow(0 .5cqw .6cqw rgba(0,0,0,.2))}
.ix-surg-cat.asleep{filter:grayscale(.25) brightness(.9);transform:translate(-50%,-48%) rotate(4deg)}
.ix-surg-cat.back{animation:surgBack .7s ease}
@keyframes surgBack{0%{transform:translate(-50%,-50%) scale(.9)}100%{transform:translate(-50%,-50%) scale(1)}}
.ix-surg-doc{position:absolute;left:20%;top:50%;transform:translateY(-50%);z-index:4;font-size:7cqw;
  filter:drop-shadow(0 .4cqw .5cqw rgba(0,0,0,.18))}
.ix-surg-hint{position:absolute;left:50%;top:7%;transform:translateX(-50%);z-index:6;
  background:rgba(255,253,246,.94);border:.2cqw solid #9fb1b7;border-radius:2cqw;
  padding:.9cqw 2.2cqw;font-size:1.5cqw;color:#4a4139;white-space:nowrap;max-width:80cqw;overflow:hidden;text-overflow:ellipsis}
.ix-surg-hint.show{animation:hintPop .35s ease}
.ix-surg-gauge{position:absolute;left:50%;top:82%;transform:translateX(-50%);z-index:6;
  width:34cqw;height:1.3cqw;background:rgba(255,255,255,.6);border:.2cqw solid #9fb1b7;border-radius:1cqw;overflow:hidden;
  opacity:0;transition:opacity .3s}
.ix-surg-gauge i{display:block;height:100%;width:0;background:linear-gradient(90deg,#e9b27a,#7fbfae);transition:width .08s linear}
.ix-surgery-scene[data-phase="hold"] .ix-surg-gauge,
.ix-surgery-scene[data-phase="anesth"] .ix-surg-gauge{opacity:1}
.ix-surg-mask{position:absolute;left:50%;top:20%;transform:translateX(-50%);z-index:5;display:none}
.ix-surg-maskface{font-size:5cqw;width:8cqw;height:8cqw;line-height:8cqw;text-align:center;border-radius:50%;
  background:rgba(255,255,255,.9);border:.3cqw solid #8ea2a7;cursor:grab}
.ix-surg-mask.active .ix-surg-maskface{background:#d7e8ea;cursor:grabbing}
.ix-surgery-scene[data-phase="anesth"] .ix-surg-mask{display:block}
.ix-surg-cone{position:absolute;left:9%;top:66%;transform:translateX(-50%);z-index:7;cursor:grab;display:none;
  width:8cqw;filter:drop-shadow(0 .3cqw .4cqw rgba(0,0,0,.18))}
.ix-surg-cone svg{width:100%;height:auto;display:block}
.ix-surg-cone.worn{left:50%!important;top:57%!important;cursor:default;width:5.5cqw;opacity:.95;transform:translateX(-50%) rotate(-8deg)}
.ix-surgery-scene[data-phase="cone"] .ix-surg-cone{display:block}
.ix-surg-door{position:absolute;right:8%;top:26%;z-index:3;width:9cqw;height:13cqw;border-radius:1cqw;
  background:#b9ccd1;border:.4cqw solid #9fb1b7;display:none!important;align-items:center;justify-content:center;
  color:#7f979d;font-size:1.2cqw;font-weight:700;letter-spacing:.1em;writing-mode:vertical-rl}
.ix-surg-door span{opacity:.5}
.ix-surg-door.on{background:#ffe9cf;border-color:#e9a76a;box-shadow:0 0 3cqw rgba(233,167,106,.6)}
.ix-surg-door.on span{opacity:1;color:#b5702f}
/* 手术进行中：整屏显示“手术中”红灯门口，旧手术室与小门牌让位 */
.ix-surg-wait{position:absolute;inset:0;z-index:3;display:none;background:#eef2f2;opacity:1}
.ix-surg-wait img{display:block;width:100%;height:100%;object-fit:cover;
  transform:translateY(4%) scale(1.08)}
.ix-surgery-scene[data-phase="op"] .ix-surg-wait{display:block;animation:surgDoorIn .45s ease}
.ix-surgery-scene[data-phase="op"] .ix-surg-art,
.ix-surgery-scene[data-phase="op"] .ix-surg-cat,
.ix-surgery-scene[data-phase="op"] .ix-surg-doc,
.ix-surgery-scene[data-phase="op"] .ix-surg-mask,
.ix-surgery-scene[data-phase="op"] .ix-surg-cone,
.ix-surgery-scene[data-phase="op"] .ix-surg-door,
.ix-surgery-scene[data-phase="op"] .ix-surg-gauge,
.ix-surgery-scene[data-phase="op"] .ix-surg-hint,
.ix-surgery-scene[data-phase="op"] .ix-surg-tip{display:none!important}
@keyframes surgDoorIn{from{transform:scale(1.015)}to{transform:none}}
.ix-doctor-line{position:absolute;left:50%;bottom:11%;transform:translateX(-50%);z-index:6;
  font-size:1.4cqw;color:#3f6b73;background:rgba(255,255,255,.86);border-radius:1.4cqw;padding:.6cqw 1.8cqw}
.ix-doctor-line.show{animation:hintPop .35s ease}
.ix-surg-tip{position:absolute;left:26%;top:60%;z-index:6}
.ix-surg-tip svg{width:4.5cqw;display:block;filter:drop-shadow(0 .2cqw .3cqw rgba(0,0,0,.15))}
/* G10 真实手术室CG 打底：把简笔猫/医生表情藏起来，只留透明热区和道具 */
.ix-surgery-scene.real-bg{background:#dbe7ea}
.ix-surgery-scene.real-bg .ix-surg-art{opacity:1}
.ix-surg-real{display:block;width:100%;height:100%;object-fit:cover}
.ix-surgery-scene.real-bg .ix-surg-doc{display:none}
.ix-surgery-scene.real-bg .ix-surg-cat{left:44%;top:57%;width:30cqw;height:15cqw;
  border:.25cqw dashed rgba(255,255,255,.62);border-radius:50%;background:rgba(255,255,255,.05);
  box-shadow:0 0 2cqw rgba(255,255,255,.18)}
.ix-surgery-scene.real-bg .ix-surg-cat svg{display:none}
.ix-surgery-scene.real-bg .ix-surg-cat::after{content:'按住它';position:absolute;left:50%;top:-2.4cqw;
  transform:translateX(-50%);font-size:1.05cqw;color:#fff;text-shadow:0 .15cqw .5cqw rgba(0,0,0,.6);
  background:rgba(32,58,66,.52);border-radius:1cqw;padding:.25cqw .9cqw;white-space:nowrap}
.ix-surgery-scene.real-bg .ix-surg-cat.asleep{background:rgba(140,180,185,.08);border-color:rgba(255,255,255,.3)}
.ix-surgery-scene.real-bg .ix-surg-cat.asleep::after{content:'它睡着了'}
.ix-surgery-scene.real-bg:not([data-phase="hold"]) .ix-surg-cat{opacity:0;pointer-events:none}
.ix-surgery-scene.real-bg .ix-surg-maskface{font-size:0;background:rgba(255,255,255,.92);
  border:.35cqw solid #8ea2a7;position:relative}
.ix-surgery-scene.real-bg .ix-surg-maskface::after{content:'';position:absolute;inset:1.3cqw;
  border:.3cqw solid #c5d5d8;border-radius:50%}
.ix-surgery-scene.real-bg .ix-surg-door{background:rgba(255,249,235,.9);border-color:#e9c79a;color:#a6743c}
.ix-surgery-scene.real-bg .ix-doctor-line{background:rgba(255,255,255,.93)}

/* ---------- 大扫除：工具的实体化身（拿在手里拖动） ---------- */
.ix-tool{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:.15cqw;
  width:8cqw;height:9.5cqw;padding:.4cqw 0 .5cqw;background:rgba(255,253,246,.92);
  border:.25cqw solid #d9bd97;border-radius:1.4cqw;cursor:grab;transition:transform .15s,box-shadow .15s}
.ix-tool svg{width:4.6cqw;height:5.4cqw;display:block;pointer-events:none}
.ix-tool small{font-size:.95cqw;color:#8a6f52;white-space:nowrap;pointer-events:none}
.ix-tool.on-tool{transform:translateY(-.5cqw);box-shadow:0 .6cqw 1cqw rgba(0,0,0,.18);border-color:#e9a76a}
.ix-tool.reject{animation:toolReject .3s ease}
@keyframes toolReject{0%,100%{transform:translateX(0)}30%{transform:translateX(-.6cqw)}60%{transform:translateX(.6cqw)}}
.ix-brush{position:absolute;z-index:9;width:11cqw;height:11cqw;transform:translate(-50%,-50%) rotate(-12deg);
  pointer-events:none;opacity:0;transition:opacity .15s;filter:drop-shadow(0 .4cqw .5cqw rgba(0,0,0,.25));
  background:none;border:0;border-radius:0;padding:0;box-shadow:none;font-size:inherit;white-space:normal}
.ix-brush svg{width:100%;height:100%;display:block}
.ix-brush.on{opacity:1}
/* 沙发/床：粘毛器与除螨仪的工具头再缩小一点，扫得更细、玩得更久 */
.ix-clean-scene[data-kind="sequence"] .ix-brush{width:8.6cqw;height:8.6cqw}
/* 工具旁的小标签：显示当前拿着的工具名（粘毛器/除螨仪…），不再写无关的「羊毛卷 ×N」 */
.ix-brush[data-tool-label]{position:absolute}
.ix-brush[data-tool-label]::after{content:attr(data-tool-label);position:absolute;right:-1cqw;bottom:-.6cqw;
  font-size:.95cqw;color:#6f5a42;background:rgba(255,250,236,.94);border:.15cqw solid #d9bd97;
  border-radius:99px;padding:.15cqw .6cqw;white-space:nowrap;box-shadow:0 .2cqw .5cqw rgba(0,0,0,.16)}
.ix-brush.on svg{animation:brushWork .5s ease-in-out infinite}
/* 工具工作动画：只上下推拉，不旋转（搅拌棒尤其不能转） */
@keyframes brushWork{0%,100%{transform:translateY(0)}50%{transform:translateY(-.9cqw)}}

/* ---------- 11-29：清洁道具真实素材（宠物用品与食物道具） ---------- */
.ix-tool img.tool-real{width:4.6cqw;height:5.4cqw;object-fit:contain;display:block;pointer-events:none}
.ix-brush img.tool-real{width:100%;height:100%;object-fit:contain;display:block}
.ix-brush.on img.tool-real{animation:brushWork .5s ease-in-out infinite}

/* 铲屎关：猫砂盆俯视整景 + 单独抠出的盆叠在同一视角 */
.ix-clean-art{position:absolute;inset:0;pointer-events:none;z-index:0;border-radius:2cqw;overflow:hidden}
.ix-clean-art .la-overhead{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;opacity:.92}
.ix-clean-art .la-cutout{position:absolute;left:6%;top:4%;width:88%;height:92%;object-fit:contain;display:block;
  filter:drop-shadow(0 .4cqw .8cqw rgba(0,0,0,.18))}
.ix-clean-scene[data-art="litter"] .ix-furball{opacity:.3}
.ix-clean-scene[data-art="litter"] .ix-clean-field{border-color:rgba(255,255,255,.75);
  box-shadow:0 0 0 .3cqw rgba(255,250,235,.35),0 1.5cqw 4cqw rgba(0,0,0,.25)}

/* 尿团：真实抠图；擦一遍才显形、点一下铲走 */
.ix-clump{background-color:transparent;background-repeat:no-repeat;background-position:center;
  background-size:contain;border:0;border-radius:0;width:5.2cqw;height:4.6cqw;
  filter:drop-shadow(0 .25cqw .35cqw rgba(0,0,0,.3))}

/* ---------- 11-29：沙发 A/B 两版 + 用户单独发来的床图 ---------- */
/* 房间原图没有床：热区安在左上角，标签常驻可见；
   床的真实插画放在床关的中央画面里，不往房间总览上贴整图（会压住猫爬架、风格不搭）。 */
.obj[data-obj="bed"] .obj-tag{opacity:.9;transform:none;background:rgba(74,63,53,.72)}

/* 沙发关：A 版有靠枕 → 收拾完切 B 版裸沙发；床关：用户发来的俯视床图 */
.ix-clean-art .la-after{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;
  opacity:0;transition:opacity .8s}
.ix-clean-scene[data-art="sofa"][data-state="done"] .la-after{opacity:1}
.ix-clean-scene[data-art="bed"][data-state="done"] .la-overhead{filter:brightness(1.08) saturate(1.05)}

/* ---------- M4：开场空屋与一道道黑影 ---------- */
.ix-empty-room{position:absolute;inset:0}
.ix-empty-room svg{width:100%;height:100%;display:block}
/* 太空舱窜猫就在【家】的大场景上演：这一层完全透明，不遮住房间，也不切场景 */
.ix-shadow-scene{background:none}
.ix-shadow-scene .ix-capsule-door{position:absolute;left:85.6%;top:52%;width:16cqw;height:19cqw;z-index:3;
  transform:translate(-50%,-50%);pointer-events:none}
.ix-shadow-scene.door-open .ix-capsule-door{animation:doorFlash .8s ease}
@keyframes doorFlash{0%{filter:brightness(1)}30%{filter:brightness(1.9)}100%{filter:brightness(1)}}
.ix-shadow{position:absolute;z-index:4;width:9cqw;opacity:0;pointer-events:none}
.ix-shadow svg{width:100%;display:block}
.ix-shadow.dash{animation:shadowDash var(--dur,1.4s) var(--delay,0s) cubic-bezier(.3,.1,.5,1) var(--fill,forwards)}
@keyframes shadowDash{
  0%{left:88%;top:47%;opacity:0;transform:translate(-50%,-50%) scale(.4) rotate(-12deg)}
  16%{opacity:1}
  58%{left:78%;top:56%;opacity:.95;transform:translate(-50%,-50%) scale(1) rotate(6deg)}
  100%{left:var(--endx,69%);top:var(--endy,68%);opacity:0;transform:translate(-50%,-50%) scale(.55) rotate(0)}}

/* ---------- 选角：未选性别时开始按钮禁用 ---------- */
#ok:disabled{opacity:.45;cursor:not-allowed;filter:grayscale(.4)}

/* ---------- M1：消息来了（引导猫推气泡 + 提示音） ---------- */
.msg-alert-page{position:absolute;inset:0}
.msg-npc{position:absolute;left:14cqw;top:46%;width:12cqw;transform:translateY(-50%);
  animation:npcPop .5s cubic-bezier(.2,1.4,.4,1) both;filter:drop-shadow(0 .6cqw .8cqw rgba(120,90,60,.3))}
.msg-npc svg{width:100%;height:auto;display:block}
@keyframes npcPop{0%{opacity:0;transform:translateY(-50%) translateX(-3cqw) scale(.6)}100%{opacity:1;transform:translateY(-50%) translateX(0) scale(1)}}
.msg-pop{position:absolute;left:29cqw;top:46%;transform:translateY(-50%);width:44cqw;
  background:#fffdf8;border:.25cqw solid #e8c9a0;border-radius:1.6cqw;padding:1.8cqw 2.2cqw;
  box-shadow:0 1cqw 3cqw rgba(120,90,60,.22);text-align:left;cursor:pointer;opacity:0}
/* 消息弹窗左侧的闺蜜头像 */
.msg-avatar{position:absolute;left:-6.4cqw;top:50%;transform:translateY(-50%);width:5.2cqw;height:5.2cqw;
  border-radius:50%;object-fit:cover;border:.28cqw solid #fff;box-shadow:0 .35cqw 1cqw rgba(120,90,60,.28)}
.msg-pop:before{content:'';position:absolute;left:-1.4cqw;top:42%;width:0;height:0;
  border-top:1.1cqw solid transparent;border-bottom:1.1cqw solid transparent;border-right:1.5cqw solid #fffdf8}
.msg-pop-head{font-size:1.4cqw;color:#a46a32;font-weight:700;margin-bottom:.6cqw}
.msg-pop-text{font-size:1.9cqw;color:#5c4c3d;line-height:1.5}
.msg-pop-go{position:absolute;right:1.6cqw;bottom:1.2cqw;font-size:1.5cqw;color:#c99a5f;animation:nudge 1s ease-in-out infinite}
@keyframes nudge{0%,100%{transform:translateX(0)}50%{transform:translateX(.5cqw)}}
.msg-pop.msgSlide{animation:msgSlideIn .55s cubic-bezier(.2,1.3,.4,1) forwards}
@keyframes msgSlideIn{0%{opacity:0;transform:translateY(-50%) translateX(-4cqw) scale(.85)}100%{opacity:1;transform:translateY(-50%) translateX(0) scale(1)}}
/* 闺蜜消息：不放引导猫，气泡直接居中 */
.msg-alert-page.no-npc .msg-pop{left:50%;transform:translate(-50%,-50%)}
.msg-alert-page.no-npc .msg-pop:before{display:none}
.msg-alert-page.no-npc .msg-pop.msgSlide{animation:msgPopIn .55s cubic-bezier(.2,1.3,.4,1) forwards}
@keyframes msgPopIn{0%{opacity:0;transform:translate(-50%,-50%) scale(.85)}100%{opacity:1;transform:translate(-50%,-50%) scale(1)}}

/* 小屏提示 */
@media (max-width:720px){#stage{font-size:1.6cqw}}

/* ============================================================
   大扫除：完整 Canvas 引擎（我们项目原生模块 clean-engine.js）
   逐帧粒子/脏水/概率/结团/铲屎全在引擎里；此层只负责铺画布。
   ============================================================ */
#clean-game-layer{position:absolute;inset:0;z-index:20;display:none;background:#fdf3e3}
#stage.mode-clean #clean-game-layer{display:block}
#clean-canvas{position:absolute;inset:0;width:100%;height:100%;display:block;touch-action:none}
#stage.mode-clean #hud,
#stage.mode-clean #fx,
#stage.mode-clean #panel-layer,
#stage.mode-clean #fullscreen,
#stage.mode-clean #scene-layer,
#stage.mode-clean #cat-layer{display:none !important}

/* ============================================================
   11-29 大扫除重做：点哪件就是哪件的大画面，直接在上头打扫
   ============================================================ */
.ix-clean-bg{position:absolute;inset:0;z-index:0;background-size:cover;background-position:center;
  filter:saturate(1.02);pointer-events:none}
.ix-clean-bg .cb-cutout{position:absolute;left:8%;top:6%;width:84%;height:88%;object-fit:contain;
  filter:drop-shadow(0 .5cqw 1.2cqw rgba(0,0,0,.22))}
/* 整屏都是这件东西：可擦区几乎铺满，只留顶栏和底部工具位 */
.ix-clean-scene .ix-clean-field{border:0;box-shadow:none;border-radius:0;overflow:visible}
.ix-clean-scene .ix-hint{position:absolute;left:50%;top:2.4cqw;transform:translateX(-50%);z-index:8;
  max-width:74cqw;text-align:center;white-space:normal;line-height:1.5;font-size:1.2cqw;color:#fff;
  text-shadow:0 .2cqw .6cqw rgba(0,0,0,.7),0 0 .3cqw rgba(0,0,0,.5)}
.ix-clean-progress{top:auto!important;bottom:10.2cqw!important;left:2.4cqw!important;right:auto!important}
/* 交互期间顶栏数字徽章让位给物件名，避免和提示叠 */
#stat-ach.clean-hide{opacity:0!important}
/* 拖地：水桶 + 洗洁精 + 搅拌棒，摆在画面右侧（放大，做足治愈反馈） */
.ix-wash{position:absolute;right:6%;top:20%;width:26cqw;height:26cqw;z-index:5;pointer-events:none;
  transition:opacity .35s}
/* 真正拖地板时：水桶缩小挪到右上角，仍看得见水一点一点变浑；涮拖时恢复原位 */
.ix-clean-scene[data-kind="mop"][data-stage="4"] .ix-wash{right:2%;top:6%;width:12cqw;height:12cqw;opacity:.92;transition:all .35s}
.ix-clean-scene[data-kind="mop"][data-stage="4"][data-rinsing="1"] .ix-wash{right:6%;top:20%;width:26cqw;height:26cqw;opacity:1}
.ix-clean-scene[data-kind="mop"][data-stage="4"] .ix-water-state{bottom:-4.2cqw;font-size:.9cqw;padding:.22cqw .7cqw}
.ix-wash-bucket{position:absolute;inset:0;pointer-events:none;filter:drop-shadow(0 .8cqw 1.4cqw rgba(0,0,0,.28));
  transition:transform .25s}
.ix-wash-bucket svg{width:100%;height:100%;display:block}
.ix-clean-scene[data-stage="2"] .ix-wash-bucket{animation:bucketWobble 1.2s ease-in-out infinite alternate}
@keyframes bucketWobble{to{transform:translateY(-.8cqw)}}
/* 自动涮拖：真实拖把头从桶上方探进泡沫水里，上下涮两下 */
.ix-auto-mop{position:absolute;left:50%;top:-7cqw;width:8cqw;height:20cqw;z-index:9;
  pointer-events:none;opacity:0;filter:drop-shadow(0 .3cqw .8cqw rgba(0,0,0,.45));
  transform:translate(-50%,-6cqw) rotate(-6deg);transition:opacity .18s}
.ix-auto-mop.on{opacity:1}
.ix-auto-mop img{width:100%;height:100%;object-fit:contain;object-position:center bottom;display:block}
/* 水质提示：刚打好是干净泡沫水，涮过拖把后变脏 */
.ix-water-state{position:absolute;left:50%;bottom:-4.6cqw;transform:translateX(-50%);z-index:7;
  background:rgba(255,252,244,.95);color:#2f9b7a;border:.14cqw solid #b9dccd;border-radius:1.6cqw;
  padding:.28cqw 1cqw;font-size:1.05cqw;white-space:nowrap;opacity:0;transition:opacity .3s}
.ix-clean-scene[data-stage="3"] .ix-water-state,
.ix-clean-scene[data-stage="4"] .ix-water-state{opacity:1}
.ix-water-state.dirty{color:#9a6b3f;border-color:#d9b78c;background:rgba(252,244,230,.97)}
/* 逐泵计数：挤一泵跳一下 */
.ix-pump-count{position:absolute;left:50%;top:-1cqw;transform:translateX(-50%);z-index:7;
  background:rgba(255,250,238,.96);color:#3f7d6c;border:.16cqw solid #b9dccd;border-radius:2cqw;
  padding:.4cqw 1.2cqw;font-size:1.35cqw;font-weight:700;white-space:nowrap;
  box-shadow:0 .3cqw .8cqw rgba(0,0,0,.16);opacity:0;transition:opacity .3s}
.ix-clean-scene[data-stage="1"] .ix-pump-count{opacity:1}
.ix-pump-count b{font-size:1.7cqw;color:#2f9b7a}
.ix-wash[data-drops="1"] .ix-pump-count b,
.ix-wash[data-drops="2"] .ix-pump-count b,
.ix-wash[data-drops="3"] .ix-pump-count b,
.ix-wash[data-drops="4"] .ix-pump-count b{animation:pumpPop .35s ease}
@keyframes pumpPop{0%{transform:scale(1)}45%{transform:scale(1.5)}100%{transform:scale(1)}}
/* 打泡进度 */
.ix-foam-meter{position:absolute;left:50%;bottom:-1.5cqw;transform:translateX(-50%);z-index:7;
  background:rgba(255,252,244,.95);color:#8a6f4e;border:.14cqw solid #e5d4b6;border-radius:1.6cqw;
  padding:.3cqw 1cqw;font-size:1.1cqw;white-space:nowrap;opacity:0;transition:opacity .3s}
.ix-clean-scene[data-stage="2"] .ix-foam-meter,
.ix-clean-scene[data-stage="3"] .ix-foam-meter{opacity:1}
.ix-foam-meter b{color:#c98f4a}
/* 液滴：从瓶口拉丝落下 */
.ix-wash-drops{position:absolute;left:50%;top:6%;transform:translateX(-50%);width:1.2cqw;height:1.8cqw;z-index:6}
.ix-drop{position:absolute;left:0;top:0;width:1.15cqw;height:1.7cqw;border-radius:50% 50% 60% 60%;
  background:linear-gradient(#eafbf5,#8fd8c4);box-shadow:inset -.2cqw -.2cqw .3cqw rgba(60,140,120,.5),0 0 .6cqw rgba(140,220,190,.7)}
/* 落水涟漪 */
.ix-ripples{position:absolute;left:50%;top:28%;width:1px;height:1px;z-index:6}
.ix-ripple{position:absolute;left:0;top:0;width:9cqw;height:3cqw;border:.22cqw solid rgba(255,255,255,.85);
  border-radius:50%;transform:translate(-50%,-50%)}
/* 涮拖水花 */
.ix-splashes{position:absolute;inset:0;z-index:7;pointer-events:none}
.ix-splash{position:absolute;width:.7cqw;height:.7cqw;border-radius:50%;background:#eafbf5;
  box-shadow:0 0 .5cqw rgba(150,220,200,.9)}
/* 洗洁精瓶：可点/可按住，挤时按压回弹 */
.ix-wash-bottle{position:absolute;left:50%;top:44%;transform:translate(-50%,-50%) scale(.9);
  pointer-events:auto;cursor:pointer;filter:drop-shadow(0 .3cqw .6cqw rgba(0,0,0,.32));z-index:8}
.ix-wash-bottle img{display:block;width:100%;max-width:11cqw;pointer-events:none}
.ix-wash-bottle.pumping{animation:bottlePump .28s ease}
@keyframes bottlePump{0%{transform:translate(-50%,-50%) scale(.9)}40%{transform:translate(-50%,-42%) scale(.8)}100%{transform:translate(-50%,-50%) scale(.9)}}
.ix-clean-scene[data-stage="1"] .ix-wash-bottle{animation:bottlePulse 1.3s ease-in-out infinite alternate}
@keyframes bottlePulse{to{filter:drop-shadow(0 0 1.4cqw rgba(255,255,255,.95))}}
/* 打泡阶段瓶子淡出让位 */
.ix-clean-scene[data-stage="2"] .ix-wash-bottle,
.ix-clean-scene[data-stage="3"] .ix-wash-bottle,
.ix-clean-scene[data-stage="4"] .ix-wash-bottle{display:none}
/* 垃圾桶：铲屎关右下角 */
.ix-trash{position:absolute;right:5%;bottom:16%;width:13cqw;height:13cqw;z-index:5;pointer-events:none;
  filter:drop-shadow(0 .5cqw .9cqw rgba(0,0,0,.3))}
.ix-trash svg{width:100%;height:100%;display:block}
.ix-trash span{position:absolute;left:50%;top:-2.2cqw;transform:translateX(-50%);font-size:1.05cqw;
  color:#fff;white-space:nowrap;background:rgba(60,90,80,.72);border-radius:.8cqw;padding:.25cqw .8cqw;
  text-shadow:0 .2cqw .5cqw rgba(0,0,0,.6)}
/* 猫砂铲铲着结团：铲斗对准指针，铲子托着结团一起走 */
.ix-carry{position:fixed;left:0;top:0;transform:translate(-37%,-62%);z-index:40;pointer-events:none;
  width:12cqw;height:9cqw;opacity:0;display:none;filter:drop-shadow(0 .3cqw .5cqw rgba(0,0,0,.4))}
.ix-carry.on{display:block;opacity:1}
.ix-carry .c-scoop,.ix-fly .c-scoop{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.ix-carry .c-clump,.ix-fly .c-clump{position:absolute;left:calc(37% - 1.8cqw);top:calc(62% - 1.8cqw);
  width:3.6cqw;height:3.6cqw;object-fit:contain;filter:drop-shadow(0 .15cqw .25cqw rgba(0,0,0,.35))}
/* 铲子带结团飞向垃圾桶（铲斗为旋转中心，终点保持原大小好看清倒出） */
.ix-fly{position:fixed;z-index:45;width:12cqw;height:9cqw;transform:translate(-37%,-62%);
  transform-origin:37% 62%;pointer-events:none;filter:drop-shadow(0 .3cqw .8cqw rgba(80,60,40,.5))}
/* 到桶口：结团从铲斗滑落进桶，铲子翘一下收回（铲子不进桶） */
.ix-fly .c-clump.dumped{animation:clumpDump .34s ease-in forwards}
.ix-fly .c-scoop.scoop-dump{animation:scoopDump .42s ease-out forwards}
@keyframes clumpDump{to{opacity:0;transform:translateY(2.6cqw) scale(.2) rotate(60deg)}}
@keyframes scoopDump{
  0%{transform:rotate(0) translateY(0);opacity:1}
  45%{transform:rotate(-28deg) translateY(-.6cqw);opacity:1}
  100%{transform:rotate(-46deg) translateY(-3cqw);opacity:0}}
/* 飞行拖尾的小砂点 */
.ix-trail{position:fixed;z-index:44;width:1.2cqw;height:1.2cqw;border-radius:50%;
  background:rgba(179,155,116,.62);transform:translate(-50%,-50%);pointer-events:none;
  animation:trailFade .34s ease-out forwards}
@keyframes trailFade{to{opacity:0;transform:translate(-50%,-50%) scale(.25)}}
/* 命中垃圾桶：棕砂粒子四散 */
.ix-hit-burst{position:fixed;z-index:46;width:0;height:0;pointer-events:none}
.ix-hit-burst i{position:absolute;left:0;top:0;width:.9cqw;height:.9cqw;border-radius:50%;
  background:#b39b74;box-shadow:0 0 .3cqw rgba(120,95,60,.5);
  animation:hitSpark .6s cubic-bezier(.2,.7,.4,1) forwards}
@keyframes hitSpark{
  from{transform:rotate(var(--a)) translateX(0) scale(1);opacity:1}
  to{transform:rotate(var(--a)) translateX(var(--d)) scale(.2);opacity:0}}
/* 桶身被砸得哐当一晃 */
.ix-trash.hit{animation:trashHit .5s ease-out}
@keyframes trashHit{
  0%{transform:rotate(0) translateY(0)}
  22%{transform:rotate(-9deg) translateY(-.8cqw)}
  50%{transform:rotate(7deg) translateY(.3cqw)}
  75%{transform:rotate(-3deg)}
  100%{transform:rotate(0) translateY(0)}}
/* 自娱自乐弹幕：命中一发飘一条 */
.ix-danmu{position:absolute;inset:0;z-index:9;pointer-events:none;overflow:hidden}
.ix-danmu-item{position:absolute;left:100%;white-space:nowrap;font-size:2.6cqw;font-weight:800;
  color:#fff9e8;letter-spacing:.1cqw;text-shadow:0 .25cqw .9cqw rgba(70,45,20,.9),0 0 .6cqw rgba(230,170,80,.8);
  background:linear-gradient(90deg,rgba(214,150,64,.92),rgba(226,178,96,.86));
  border:.16cqw solid #fff2d4;border-radius:2cqw;padding:.35cqw 1.5cqw;box-shadow:0 .4cqw 1cqw rgba(0,0,0,.28);
  animation:danmuFly 3s linear forwards}
@keyframes danmuFly{
  0%{transform:translateX(0);opacity:0}
  12%{opacity:1}
  86%{opacity:1}
  100%{transform:translateX(-132cqw);opacity:0}}
/* 显形后可铲的结团 */
.ix-clean-scene[data-kind="scoop"] .ix-clump{z-index:4;cursor:grab}
.ix-clump.carrying{opacity:0!important;pointer-events:none}
/* 拖地三遍三态：换照片按"正在拖的这一遍"来，不再等拖完才跳：
   第1遍=原脏地板+暖白泡沫亮泽 · 第2遍=稍微干净、只剩几根浮毛的那张照片 ·
   第3遍=光溜溜的干净地板；泡沫亮泽三遍都在，只是越来越淡。 */
.cb-layer{position:absolute;inset:0;background-size:cover;background-position:center;opacity:0;transition:opacity .8s ease}
/* 暖白泡沫亮泽（不是蓝水膜）；单独一层盖在照片上方，保留打泡的感觉 */
.cb-foam{z-index:3;background-color:rgba(255,252,240,.16);
  background-image:
    radial-gradient(circle at 14% 22%,rgba(255,255,255,.42) 0 .55cqw,transparent .95cqw),
    radial-gradient(circle at 33% 58%,rgba(255,255,255,.4) 0 .6cqw,transparent 1cqw),
    radial-gradient(circle at 62% 30%,rgba(255,255,255,.38) 0 .5cqw,transparent .9cqw),
    radial-gradient(circle at 78% 70%,rgba(255,255,255,.4) 0 .65cqw,transparent 1.1cqw),
    radial-gradient(circle at 47% 84%,rgba(255,255,255,.35) 0 .5cqw,transparent .85cqw);
  background-blend-mode:normal;box-shadow:inset 0 0 6cqw rgba(255,248,225,.18)}
.cb-mid{z-index:1;background-image:url('../assets/web/clean/floor_mid.jpg')}
.cb-final{z-index:2;background-image:url('../assets/web/clean/floor_clean.jpg')}
/* 第1遍：脏地板 + 满一点泡沫；第2遍：换成还有浮毛的照片 + 淡泡沫；
   第3遍：干净照片 + 很淡的泡沫；做完：泡沫退去，只剩干净地板。 */
.ix-clean-scene[data-art="floor"][data-round="0"] .cb-foam{opacity:1}
.ix-clean-scene[data-art="floor"][data-round="1"] .cb-mid{opacity:1}
.ix-clean-scene[data-art="floor"][data-round="1"] .cb-foam{opacity:.45}
.ix-clean-scene[data-art="floor"][data-round="2"] .cb-final{opacity:1}
.ix-clean-scene[data-art="floor"][data-round="2"] .cb-foam{opacity:.25}
.ix-clean-scene[data-art="floor"][data-round="3"] .cb-final,
.ix-clean-scene[data-art="floor"][data-state="done"] .cb-final{opacity:1;z-index:2}
/* 沙发近景从头到尾都是空沙发（无靠枕），做完和床一样提亮收尾；床：做完提亮 */
.ix-clean-scene[data-art="stool"][data-state="done"] .ix-clean-bg,
.ix-clean-scene[data-art="bed"][data-state="done"] .ix-clean-bg{filter:brightness(1.08) saturate(1.05)}
/* 旧的小框地板层不再用 */
.ix-clean-art{display:none}

/* ============================================================
   手机版配置（12-03）：同一网址自动适配，电脑版行为不变
   ============================================================ */
/* 竖屏提示层：默认隐藏，只有手机竖屏才盖出来 */
#rotate-hint{display:none;position:fixed;inset:0;z-index:9999;
  background:radial-gradient(circle at 50% 38%,#3a332b,#211d19);
  color:#fff;flex-direction:column;align-items:center;justify-content:center;
  text-align:center;padding:8vw;user-select:none}
#rotate-hint.show{display:flex}
.rotate-icon{font-size:16vw;line-height:1;color:#e9a76a;
  transform:rotate(90deg);animation:rotateNudge 1.8s ease-in-out infinite}
@keyframes rotateNudge{0%,100%{transform:rotate(90deg)}50%{transform:rotate(55deg)}}
.rotate-title{font-size:5.2vw;font-weight:600;margin-top:6vw;letter-spacing:.05em}
.rotate-sub{font-size:3.6vw;color:#c9bba8;margin-top:2.5vw;line-height:1.6}

/* 手机横屏：舞台贴边铺满、去掉桌面投影，字体略放大，触摸友好 */
html.is-mobile #viewport{background:#211d19}
html.is-mobile #stage{box-shadow:none;width:100vw;height:56.25vw;
  max-height:100vh;max-width:177.7778vh}
html.is-mobile body{ -webkit-tap-highlight-color:transparent; touch-action:manipulation }
html.is-touch #stage{touch-action:manipulation}
/* 触摸设备没有 hover：把「悬停才显示」的引导框常亮，避免看不到该点哪里 */
@media (hover:none){
  .obj:hover{border-color:transparent;background:transparent}
  .obj.is-target .obj-tag{opacity:1;transform:none}
}
/* 手机刘海屏安全区 */
html.is-mobile #viewport{padding:env(safe-area-inset-left) env(safe-area-inset-right)}
