/* ============================================================
   《来源：网络》 第一章 · 今天也要照顾奶娃
   ============================================================ */
* { margin:0; padding:0; box-sizing:border-box; user-select:none; -webkit-user-select:none; }
html,body { width:100%; height:100%; background:#000; overflow:hidden;
  font-family:"Noto Sans SC","Microsoft YaHei","PingFang SC",sans-serif; }
img { pointer-events:none; }

#fitwrap { position:fixed; inset:0; display:flex; align-items:center; justify-content:center; }
#stage { position:relative; width:1280px; height:720px; background:#000; overflow:hidden;
  transform-origin:center center; }

.hidden { display:none !important; }

/* ---------------- 字幕黑边 ---------------- */
#letterbox { position:absolute; inset:0; pointer-events:none; z-index:60; }
#letterbox .lb-top,#letterbox .lb-bot { position:absolute; left:0; right:0; height:0;
  background:#000; transition:height .9s ease; }
#letterbox .lb-top { top:0; } #letterbox .lb-bot { bottom:0; }
#letterbox.cine .lb-top,#letterbox.cine .lb-bot { height:64px; }

/* ---------------- 暗角 ---------------- */
#vignette { position:absolute; inset:0; pointer-events:none; z-index:55;
  background:radial-gradient(ellipse at center, transparent 52%, rgba(0,0,0,.42) 100%);
  opacity:1; transition:opacity .8s; }
#vignette.dark { background:radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,.78) 100%); }

/* ============================================================
   标题界面
   ============================================================ */
#title { position:absolute; inset:0; z-index:200; background:#070605; overflow:hidden; }
#title .t-bg { position:absolute; inset:0;
  background:
    radial-gradient(1100px 500px at 72% 88%, rgba(120,96,44,.30), transparent 60%),
    radial-gradient(900px 600px at 12% 10%, rgba(64,58,44,.5), transparent 65%),
    linear-gradient(#0b0a08, #070605 55%, #050404); }
#title .t-grain { position:absolute; inset:-40px; opacity:.5; pointer-events:none;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.04 0'/></filter><rect width='120' height='120' filter='url(%23n)'/></svg>");
  animation:grain 1.1s steps(4) infinite; }
@keyframes grain { 0%{transform:translate(0,0)} 25%{transform:translate(-14px,9px)}
  50%{transform:translate(10px,-12px)} 75%{transform:translate(-7px,-7px)} 100%{transform:translate(0,0)} }
#title .t-vignette { position:absolute; inset:0; pointer-events:none;
  background:radial-gradient(ellipse at 46% 44%, transparent 40%, rgba(0,0,0,.72) 100%); }
#title .t-hes span { position:absolute; color:rgba(210,196,160,.13); font-size:18px;
  letter-spacing:4px; animation:thehe 7s ease infinite; }
@keyframes thehe { 0%,100%{opacity:0; transform:translateY(10px) scale(.92)}
  8%{opacity:1} 45%{opacity:.55; transform:translateY(-16px) scale(1.04)} 60%{opacity:0} }
#title .t-frog { position:absolute; right:-40px; bottom:-56px; width:460px; opacity:.94;
  filter:drop-shadow(0 30px 60px rgba(0,0,0,.8)) saturate(.92) brightness(.96);
  animation:frogbob 5.5s ease-in-out infinite; transform:rotate(-3deg); }
@keyframes frogbob { 0%,100%{transform:rotate(-3deg) translateY(0)}
  50%{transform:rotate(-2.2deg) translateY(-12px)} }
#title .t-body { position:absolute; left:7%; top:50%; transform:translateY(-50%);
  display:flex; flex-direction:column; gap:16px; max-width:640px; }
#title .t-badge { color:#8d8570; font-size:13px; letter-spacing:5px; border:1px solid #35322a;
  padding:5px 14px; width:max-content; background:rgba(255,255,255,.02); }
#title .t-logo { color:#ece7d8; font-size:56px; font-weight:800; letter-spacing:5px;
  text-shadow:0 0 34px rgba(232,227,213,.22), 0 2px 0 rgba(0,0,0,.6); }
#title .t-sub { color:#948c76; font-size:19px; letter-spacing:7px; }
#title .t-menu { display:flex; flex-direction:column; gap:12px; margin-top:18px; width:320px; }
#title .t-start { color:#f3eee0; border:1px solid #4a463c; padding:14px 20px; font-size:19px;
  letter-spacing:7px; cursor:pointer; transition:all .25s; background:#0d0d0c; text-align:center;
  position:relative; }
#title .t-start:hover { background:#f3eee0; color:#0d0d0c; box-shadow:0 0 34px rgba(243,238,224,.28); }
#title .t-start .sv-meta { font-size:12px; letter-spacing:2px; color:#8d8570; margin-left:8px; }
#title .t-start:hover .sv-meta { color:#444; }
#title .t-about { color:#6f6a5c; font-size:13px; letter-spacing:3px; cursor:pointer;
  width:max-content; border-bottom:1px dashed #3c3a30; padding-bottom:2px; }
#title .t-about:hover { color:#c9c4b2; }
#title .t-warn { color:#57534a; font-size:12.5px; letter-spacing:2px; margin-top:10px; }
#title .t-note { position:absolute; bottom:18px; right:24px; color:#3c3a34; font-size:12px; }

/* 关于弹窗 */
#aboutmodal { position:absolute; inset:0; background:rgba(0,0,0,.78); z-index:210;
  display:flex; align-items:center; justify-content:center; }
#aboutmodal .am-box { width:520px; background:#111009; border:1px solid #3a362c; padding:30px 34px;
  box-shadow:0 30px 90px rgba(0,0,0,.8); }
#aboutmodal .am-title { color:#ece7d8; font-size:22px; letter-spacing:6px; margin-bottom:16px; }
#aboutmodal .am-text { color:#a29c8a; font-size:14.5px; line-height:2; }
#aboutmodal .am-text b { color:#d9cf9f; }
#aboutmodal .am-credit { margin-top:18px; border-top:1px solid #2c2a22; padding-top:14px;
  color:#7c766a; font-size:13px; line-height:1.9; }
#aboutmodal .am-credit-title { color:#8d8570; font-size:12px; letter-spacing:4px; margin-bottom:6px; }
#aboutmodal .am-credit a { color:#b0a887; text-decoration:none; border-bottom:1px solid #55503f; }
#aboutmodal .am-credit a:hover { color:#e2dabb; }
#aboutmodal .am-close { margin-top:20px; color:#c9c4b2; border:1px solid #4a463c; padding:8px 30px;
  width:max-content; cursor:pointer; font-size:14px; letter-spacing:4px; }
#aboutmodal .am-close:hover { background:#c9c4b2; color:#111; }

/* 自动存档提示 */
#autosave { position:absolute; left:22px; bottom:18px; z-index:120; color:#9db29a;
  background:rgba(10,12,10,.72); border:1px solid rgba(157,178,154,.35); font-size:12px;
  padding:4px 12px; letter-spacing:2px; animation:autosavein 1.8s ease forwards; pointer-events:none; }
@keyframes autosavein { 0%{opacity:0; transform:translateY(8px)} 12%{opacity:1; transform:none}
  80%{opacity:1} 100%{opacity:0} }

/* ============================================================
   HUD
   ============================================================ */
#hud { position:absolute; inset:0; pointer-events:none; z-index:80; }
#taskbar { position:absolute; left:22px; top:58px; min-width:280px; max-width:430px;
  background:rgba(19,22,21,.62); border:1px solid rgba(223,205,157,.62);
  border-left:4px solid rgba(195,164,87,.92); color:#f3eddf; padding:12px 17px 14px;
  pointer-events:auto; touch-action:none; user-select:none; -webkit-user-select:none;
  backdrop-filter:none; -webkit-backdrop-filter:none; cursor:grab;
  box-shadow:0 8px 20px rgba(0,0,0,.22),inset 0 0 0 1px rgba(255,255,255,.08);
  font-family:'KaiTi','STKaiti','DFKai-SB','楷体',cursive,'Microsoft YaHei UI',sans-serif; }
#taskbar.dragging { cursor:grabbing; box-shadow:0 12px 28px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.12); }
#taskbar::before { content:""; position:absolute; left:-4px; top:0; width:42px; height:3px;
  background:#ead69a; box-shadow:0 0 10px rgba(234,214,154,.38); }
#taskbar .tb-title { display:flex; align-items:center; justify-content:space-between; gap:14px;
  font-size:13px; font-weight:600; letter-spacing:2px; color:#e4d29e; margin-bottom:5px; }
#taskbar .tb-title i { color:#898778; font:10px/1 Consolas,'Microsoft YaHei UI',sans-serif;
  letter-spacing:1.4px; font-style:normal; white-space:nowrap; }
#taskbar #tb-main { font-size:18px; font-weight:600; letter-spacing:.055em; line-height:1.5;
  color:#fff8e8; text-shadow:0 1px 2px rgba(0,0,0,.7); }
#taskbar #tb-sub { border-top:1px solid rgba(230,215,174,.32); padding-top:6px;
  font-size:14px; font-weight:500; letter-spacing:.035em; color:#eee5d0; margin-top:7px; line-height:1.65;
  text-shadow:0 1px 2px rgba(0,0,0,.65); }
#taskbar #tb-sub .warn { color:#e07862; font-weight:700; }
#taskbar.pulse { animation:tbpulse 1s ease infinite; }
@keyframes tbpulse { 0%,100%{border-color:rgba(255,255,255,.14)} 50%{border-color:rgba(217,88,76,.8)} }

#clockbox { position:absolute; right:66px; top:18px; text-align:right; color:#e9e4d6;
  background:rgba(10,10,12,.78); border:1px solid rgba(255,255,255,.14); padding:8px 16px; }
#daylabel { font-size:12px; letter-spacing:3px; color:#9a9484; }
#clock { font-size:24px; font-family:Consolas,monospace; letter-spacing:2px; }

#phonebtn { position:absolute; right:22px; bottom:20px; width:56px; height:56px; border-radius:12px;
  background:rgba(10,10,12,.82); border:1px solid rgba(255,255,255,.18); display:flex;
  align-items:center; justify-content:center; cursor:pointer; pointer-events:auto; transition:transform .15s; }
#phonebtn:hover { transform:translateY(-3px); }
#phonebtn .pb-icon { font-size:26px; }
#phonebtn.ring { animation:ring .5s ease infinite; }
@keyframes ring { 0%,100%{transform:rotate(0)} 25%{transform:rotate(-7deg)} 75%{transform:rotate(7deg)} }
#phonebtn .pb-badge { position:absolute; top:-7px; right:-7px; min-width:20px; height:20px;
  border-radius:10px; background:#d9584c; color:#fff; font-size:12px; display:flex;
  align-items:center; justify-content:center; padding:0 5px; }

/* ============================================================
   系统提示 / 大字提示
   ============================================================ */
#sysmsg { position:absolute; left:50%; bottom:130px; transform:translateX(-50%); z-index:85;
  background:rgba(10,10,12,.85); color:#efe9da; border:1px solid rgba(255,255,255,.2);
  padding:10px 26px; font-size:17px; letter-spacing:1px; pointer-events:none; white-space:pre-wrap;
  text-align:center; max-width:80%; }
#bigmsg { position:absolute; left:50%; top:38%; transform:translate(-50%,-50%); z-index:86;
  color:#f0ebe0; font-size:30px; letter-spacing:4px; text-align:center; pointer-events:none;
  text-shadow:0 2px 18px rgba(0,0,0,.9); white-space:pre-wrap; line-height:1.8; }
#bigmsg.red { color:#e05548; }
#bigmsg .small { font-size:18px; color:#bdb7a6; }

/* ============================================================
   对话框
   ============================================================ */
#dialog { position:absolute; left:50%; bottom:34px; transform:translateX(-50%); width:820px;
  min-height:96px; z-index:99; background:rgba(8,8,10,.88); border:1px solid rgba(255,255,255,.22);
  padding:14px 24px 16px; cursor:pointer; }
#dspeaker { position:absolute; top:-15px; left:18px; background:#e9e4d6; color:#111;
  font-size:13px; padding:2px 14px; letter-spacing:2px; }
#dtext { color:#f0ebe0; font-size:18px; line-height:1.75; letter-spacing:.5px; min-height:34px; white-space:pre-wrap; }
#dnext { position:absolute; right:14px; bottom:8px; color:#9a9484; font-size:13px; animation:bob 1s ease infinite; }
@keyframes bob { 0%,100%{transform:translateY(0)} 50%{transform:translateY(4px)} }
#dchoices { display:flex; flex-wrap:wrap; gap:10px; margin-top:10px; }
#dchoices .ch { border:1px solid #8a8574; color:#e9e4d6; padding:7px 20px; font-size:16px;
  cursor:pointer; background:rgba(255,255,255,.04); transition:all .15s; }
#dchoices .ch:hover { background:#e9e4d6; color:#111; }

/* ============================================================
   手机
   ============================================================ */
#phone { position:absolute; right:24px; bottom:24px; width:340px; height:520px; z-index:95;
  background:#111; border-radius:26px; border:3px solid #2c2c2c; padding:12px;
  box-shadow:0 18px 60px rgba(0,0,0,.7); animation:phoneup .3s ease; }
@keyframes phoneup { from{transform:translateY(40px);opacity:0} to{transform:translateY(0);opacity:1} }
.ph-screen { width:100%; height:100%; background:#0c0e10; border-radius:14px; display:flex;
  flex-direction:column; overflow:hidden; }
.ph-head { height:46px; background:#15181b; display:flex; align-items:center; padding:0 12px; gap:8px;
  border-bottom:1px solid #23272b; }
.ph-back { color:#9aa3ab; font-size:22px; cursor:pointer; width:24px; }
.ph-title { color:#dfe4e8; font-size:15px; flex:1; }
.ph-sp { width:24px; }
.ph-list { flex:1; overflow-y:auto; padding:12px 10px; display:flex; flex-direction:column; gap:10px; }
.ph-list { scrollbar-width:thin; scrollbar-color:#655744 #0c0e10; }
.ph-list::-webkit-scrollbar { width:8px; }
.ph-list::-webkit-scrollbar-track { background:#0c0e10; border-radius:8px; }
.ph-list::-webkit-scrollbar-thumb { background:#655744; border:2px solid #0c0e10; border-radius:8px; }
.ph-list::-webkit-scrollbar-thumb:hover { background:#c9b06a; }
.msg { max-width:78%; padding:9px 13px; font-size:14.5px; line-height:1.6; border-radius:12px;
  white-space:pre-wrap; word-break:break-all; }
.msg.them { align-self:flex-start; background:#1d2126; color:#e6eaee; border-top-left-radius:3px; }
.msg.me { align-self:flex-end; background:#2c4632; color:#e8f2ea; border-top-right-radius:3px; }
.msg.sysm { align-self:center; background:transparent; color:#6b727a; font-size:12px; padding:2px; }
.msg .mtime { display:block; font-size:10px; color:#5a6169; margin-top:3px; }
.msg.picmsg { background:#1d2126; padding:6px; cursor:pointer; }
.pthumb { width:200px; height:112px; overflow:hidden; position:relative; background:#000; }
.pthumb .room { position:absolute; left:0; top:0; width:1280px; height:720px;
  transform:scale(0.15625); transform-origin:0 0; }

/* ============================================================
   通话界面
   ============================================================ */
#callui { position:absolute; inset:0; z-index:96; background:rgba(2,2,3,.96); display:flex;
  flex-direction:column; align-items:center; justify-content:center; gap:14px; }
.call-avatar { width:96px; height:96px; border-radius:50%; background:#1b1b1d; border:1px solid #3a3a3c;
  display:flex; align-items:center; justify-content:center; color:#8d8d90; font-size:38px; }
.call-name { color:#e9e4d6; font-size:24px; letter-spacing:3px; }
.call-status { color:#77726a; font-size:14px; letter-spacing:2px; }
.call-lines { width:640px; min-height:150px; display:flex; flex-direction:column; gap:8px; align-items:center; }
.call-lines .cl { color:#e6e1d3; font-size:19px; letter-spacing:1px; white-space:pre-wrap;
  text-align:center; line-height:1.7; animation:clin .25s ease; }
.call-lines .cl.me { color:#a8c2ab; }
@keyframes clin { from{opacity:0;transform:translateY(6px)} to{opacity:1;transform:none} }
.call-btns { display:flex; gap:14px; margin-top:10px; flex-wrap:wrap; justify-content:center; }
.call-btns .ch { border:1px solid #8a8574; color:#e9e4d6; padding:9px 26px; font-size:17px;
  cursor:pointer; background:rgba(255,255,255,.04); }
.call-btns .ch:hover { background:#e9e4d6; color:#111; }
.call-btns .answer { border-color:#7fae82; color:#a9d9ac; }
.call-btns .answer:hover { background:#7fae82; color:#0b0b0b; }

/* ============================================================
   照片查看
   ============================================================ */
#photoview { position:absolute; inset:0; z-index:97; background:rgba(0,0,0,.92); display:flex;
  align-items:center; justify-content:center; }
.pv-frame { position:relative; width:960px; height:540px; background:#000; border:6px solid #e8e3d5;
  box-shadow:0 20px 80px rgba(0,0,0,.9); overflow:hidden; }
.pv-shot { position:absolute; inset:0; transform-origin:center; transition:transform .45s ease; }
.pv-shot .room { position:absolute; left:0; top:0; width:1280px; height:720px;
  transform:scale(0.75); transform-origin:0 0; }
.pv-shot.zoomtv { transform:scale(2.1); transform-origin:16% 58%; }
.pv-shot .roomclone { position:absolute; inset:0; }
.pv-meta { position:absolute; left:0; right:0; bottom:-46px; text-align:center; color:#bdb7a6;
  font-size:14px; letter-spacing:2px; }
.pv-close { position:absolute; top:24px; right:34px; color:#e9e4d6; font-size:26px; cursor:pointer;
  border:1px solid #555; width:44px; height:44px; display:flex; align-items:center; justify-content:center; }
.pv-hint { position:absolute; bottom:12px; left:0; right:0; text-align:center; color:#8f8a7c; font-size:13px; }

/* 拍照识别框 */
.detbox { position:absolute; border:2px solid #7fd97f; pointer-events:none; }
.detbox .dlab { position:absolute; top:-20px; left:-2px; color:#7fd97f; font-size:12px;
  background:rgba(0,0,0,.55); padding:0 5px; white-space:nowrap; }
.detbox.extra { border-color:#d9d958; }
.detbox.extra .dlab { color:#d9d958; }
.detresult { position:absolute; left:0; right:0; top:44%; text-align:center; color:#e9ff9; }
.photochip { position:absolute; }

/* ============================================================
   覆盖层：黑屏 / LOGO / 结局
   ============================================================ */
#overlay { position:absolute; inset:0; z-index:150; background:#000; display:flex; flex-direction:column;
  align-items:center; justify-content:center; gap:20px; }
#overlay.transparent { background:rgba(0,0,0,0); pointer-events:none; }
#overlay .ov-text { color:#d9d4c6; font-size:22px; letter-spacing:3px; text-align:center;
  line-height:2; white-space:pre-wrap; }
#overlay .ov-logo { color:#e8e3d5; font-size:46px; font-weight:700; letter-spacing:8px;
  text-shadow:0 0 30px rgba(232,227,213,.3); }
#overlay .ov-sub { color:#77726a; font-size:16px; letter-spacing:4px; }
#overlay .ov-ch { color:#8f8a7c; font-size:15px; letter-spacing:6px; }
#overlay .ov-big { color:#efeadb; font-size:64px; font-weight:800; letter-spacing:4px;
  font-family:Consolas,monospace; }
#overlay .ov-red { color:#c9483c; }
#overlay .t-start { color:#f3eee0; border:1px solid #4a463c; padding:12px 44px; font-size:18px;
  letter-spacing:6px; cursor:pointer; margin-top:30px; background:transparent; }
#overlay .t-start:hover { background:#f3eee0; color:#0d0d0c; }

/* 嘿嘿漂浮字 */
.hefloat { position:absolute; color:#cfc9ba; font-size:17px; letter-spacing:3px; opacity:0;
  z-index:151; pointer-events:none; animation:hefloat 2.8s ease forwards; }
@keyframes hefloat { 0%{opacity:0; transform:scale(.8)} 15%{opacity:.95} 80%{opacity:.7} 100%{opacity:0; transform:scale(1.15)} }

/* ============================================================
   FX
   ============================================================ */
#fx { position:absolute; inset:0; pointer-events:none; z-index:110; }
#fx.flashwhite { background:#fff; animation:fxflash .5s ease; }
@keyframes fxflash { 0%{opacity:1} 100%{opacity:0} }
#fx.shake { animation:fxshake .5s ease; }
@keyframes fxshake { 0%,100%{transform:none} 20%{transform:translate(-9px,3px)} 40%{transform:translate(8px,-4px)}
  60%{transform:translate(-6px,2px)} 80%{transform:translate(5px,-2px)} }
#fx.glitch { animation:fxglitch .6s steps(2) infinite; background:transparent; }
#fx.glitch::before,#fx.glitch::after { content:""; position:absolute; left:0; right:0; height:3px;
  background:rgba(255,255,255,.08); }
#fx.glitch::before { top:30%; } #fx.glitch::after { top:72%; }
#fx.blackfade { background:#000; animation:fxbfade 1s ease forwards; }
@keyframes fxbfade { 0%{opacity:0} 100%{opacity:1} }

/* 手持物品光标 */
#held { position:absolute; width:54px; height:54px; z-index:120; pointer-events:none; display:none;
  filter:drop-shadow(0 4px 6px rgba(0,0,0,.5)); }
#held .held-label { position:absolute; bottom:-20px; left:50%; transform:translateX(-50%);
  color:#fff; font-size:11px; background:rgba(0,0,0,.6); padding:1px 6px; white-space:nowrap; }

/* ============================================================
   房间通用
   ============================================================ */
#rooms { position:absolute; inset:0; transition:transform 1.2s ease; }
.room { position:absolute; inset:0; display:none; overflow:hidden; }
.room.active { display:block; }
.room .wall { position:absolute; left:0; right:0; top:0; height:470px; }
.room .floor { position:absolute; left:0; right:0; top:470px; bottom:0; }
.room .baseboard { position:absolute; left:0; right:0; top:458px; height:14px;
  background:rgba(0,0,0,.14); box-shadow:0 1px 0 rgba(255,255,255,.08) inset; }
.groundline { position:absolute; left:0; right:0; top:640px; height:1px; background:rgba(0,0,0,.18); }

/* 门（通用） */
.door { position:absolute; width:110px; height:220px; border:3px solid rgba(0,0,0,.35);
  cursor:pointer; z-index:5; }
.door .door-panel { position:absolute; inset:6px; }
.door .knob { position:absolute; width:10px; height:10px; border-radius:50%; background:#3c382f;
  top:50%; }
.door .door-label { position:absolute; bottom:-26px; left:50%; transform:translateX(-50%);
  color:rgba(0,0,0,.45); font-size:12px; letter-spacing:2px; white-space:nowrap; }
.hotspot-glow { outline:2px solid rgba(255,240,180,.0); transition:outline .2s, box-shadow .2s; }
.hotspot-glow:hover, .hotspot-glow.glow { outline-color:rgba(255,240,180,.85);
  box-shadow:0 0 24px rgba(255,240,180,.25); }
.door.open .door-panel { transform:perspective(400px) rotateY(58deg); transform-origin:left center;
  transition:transform .5s ease; }

/* ============================================================
   卧室
   ============================================================ */
#room-bedroom .wall { background:linear-gradient(#5a5566,#4c4856); }
#room-bedroom .floor { background:linear-gradient(#6b5d4f,#57493c); }
.bed { position:absolute; left:400px; top:330px; width:480px; height:250px; z-index:6; }
.bed .mattress { position:absolute; left:20px; top:60px; right:20px; bottom:14px;
  background:linear-gradient(#cfc8ba,#b8b1a2); border-radius:14px; box-shadow:0 12px 20px rgba(0,0,0,.35); }
.bed .quilt { position:absolute; left:20px; top:104px; right:20px; bottom:14px;
  background:linear-gradient(#7c8894,#66727e); border-radius:12px; }
.bed .pillow { position:absolute; left:52px; top:66px; width:130px; height:52px; background:#e3ddd0;
  border-radius:12px; box-shadow:0 3px 6px rgba(0,0,0,.25); }
.bedhead { position:absolute; left:400px; top:352px; width:480px; height:44px; background:#4a4038;
  border-radius:8px 8px 0 0; z-index:5; }
.wardrobe { position:absolute; right:60px; top:170px; width:170px; height:290px; z-index:6;
  background:linear-gradient(#5d4f41,#4c3f33); border:3px solid #3a3028; cursor:pointer; }
.wardrobe .wd-door { position:absolute; top:6px; bottom:6px; width:47%; background:rgba(0,0,0,.12);
  border:2px solid rgba(0,0,0,.25); z-index:2; transform-style:preserve-3d; transition:transform .48s cubic-bezier(.2,.75,.25,1); }
.wardrobe .wd-l { left:6px; } .wardrobe .wd-r { right:6px; }
.wardrobe .wd-inside { position:absolute; inset:8px; z-index:1; opacity:.55;
  background:linear-gradient(90deg,#211a16,#382b20 48%,#211a16); transition:opacity .35s; }
.wardrobe .wd-inside::before { content:""; position:absolute; left:7px; right:7px; top:46%; height:5px;
  background:#6e5236; box-shadow:0 2px 4px rgba(0,0,0,.5); }
.wardrobe.open .wd-inside { opacity:1; }
.wardrobe.open .wd-l { transform:perspective(480px) rotateY(-92deg); transform-origin:left center; }
.wardrobe.open .wd-r { transform:perspective(480px) rotateY(92deg); transform-origin:right center; }
.wardrobe .wd-handle { position:absolute; top:45%; width:5px; height:26px; background:#2c241d; }
.wardrobe .wd-handle.l { left:48%; } .wardrobe .wd-handle.r { right:48%; }
.bedunderspot { position:absolute; left:470px; top:600px; width:340px; height:34px; cursor:pointer; z-index:7; }

/* ============================================================
   客厅
   ============================================================ */
#room-living .wall { background:linear-gradient(#b8a98f,#a6987e); }
#room-living .floor { background:linear-gradient(#8a6f52,#75593f);
  background-image:repeating-linear-gradient(90deg, rgba(0,0,0,.08) 0 3px, transparent 3px 110px); }
.tv { position:absolute; left:96px; top:236px; width:300px; height:190px; z-index:6; cursor:pointer; }
.tv .tv-frame { position:absolute; inset:0; background:#141414; border-radius:6px; padding:8px;
  box-shadow:0 14px 26px rgba(0,0,0,.45); }
.tv .tv-screen { position:absolute; inset:8px; background:#0a0c10; overflow:hidden; border-radius:3px; }
.tv .tv-stand { position:absolute; left:50%; bottom:-26px; transform:translateX(-50%);
  width:150px; height:22px; background:#2b2b2b; border-radius:4px; }
.tv .tv-content { position:absolute; inset:0; display:none; align-items:center; justify-content:center;
  flex-direction:column; gap:6px; color:#cfe3ef; font-size:13px; text-align:center; }
.tv .tv-content .tc-img { width:110px; height:110px; background-size:contain; background-repeat:no-repeat;
  background-position:center bottom; }
.tv.on .tv-content { display:flex; }
.tv .static { position:absolute; inset:0; display:none;
  background:repeating-linear-gradient(0deg, #111 0 2px, #2e2e2e 2px 4px, #191919 4px 6px); }
.tv.on .static.showing { display:block; animation:tvmove .3s steps(3) infinite; }
@keyframes tvmove { 0%{background-position:0 0} 100%{background-position:0 8px} }
.tv .reflection { position:absolute; right:26px; top:24px; width:56px; height:110px; opacity:0;
  background:#000; border-radius:45% 45% 40% 40%; filter:blur(3px); z-index:3; }
.tv.reflecting .reflection { opacity:.28; }
.tvcap { position:absolute; left:96px; top:430px; width:300px; text-align:center; color:rgba(0,0,0,.4);
  font-size:12px; z-index:6; }

.sofa { position:absolute; left:560px; top:356px; width:420px; height:180px; z-index:6; }
.sofa .sf-back { position:absolute; left:14px; right:14px; top:0; height:86px;
  background:linear-gradient(#6f5f74,#5d4e62); border-radius:16px 16px 4px 4px; }
.sofa .sf-seat { position:absolute; left:0; right:0; top:78px; bottom:24px;
  background:linear-gradient(#82708a,#6e5d76); border-radius:10px; box-shadow:0 12px 20px rgba(0,0,0,.3); }
.sofa .sf-arm { position:absolute; top:36px; bottom:20px; width:38px; background:#77657f;
  border-radius:12px; }
.sofa .sf-arm.l { left:-8px; } .sofa .sf-arm.r { right:-8px; }
.sofa .sf-leg { position:absolute; bottom:0; width:16px; height:26px; background:#4a3c50; }
.sofa .sf-leg.l { left:24px; } .sofa .sf-leg.r { right:24px; }
.photozone { position:absolute; left:520px; top:330px; width:500px; height:250px; border:3px dashed
  rgba(255,255,255,.35); border-radius:20px; z-index:5; display:none; pointer-events:none; }
.photozone.show { display:block; }
.photozone .pz-label { position:absolute; top:-28px; left:50%; transform:translateX(-50%);
  color:rgba(255,255,255,.75); font-size:14px; letter-spacing:2px; background:rgba(0,0,0,.35);
  padding:2px 12px; border-radius:4px; white-space:nowrap; }

.trashcan { position:absolute; left:470px; top:520px; width:64px; height:86px; z-index:7; cursor:pointer; }
.trashcan .tc-body { position:absolute; inset:0; background:linear-gradient(#5e6660,#48504a);
  border-radius:6px 6px 12px 12px; }
.trashcan .tc-lid { position:absolute; top:-12px; left:-4px; right:-4px; height:16px;
  background:#6c746e; border-radius:8px; }
.rulesposter { position:absolute; right:80px; top:120px; width:250px; height:300px; z-index:6;
  background:#efe9d8; color:#3c382f; padding:16px 18px; font-size:15px; line-height:2.05;
  box-shadow:0 10px 24px rgba(0,0,0,.35); cursor:pointer; transform:rotate(.6deg); }
.rulesposter::before { content:""; position:absolute; top:-12px; left:50%; width:16px; height:16px;
  margin-left:-8px; background:#b7b0a0; transform:rotate(45deg); }
.rulesposter .rp-title { text-align:center; font-weight:700; font-size:17px; letter-spacing:2px;
  border-bottom:2px solid #3c382f; padding-bottom:6px; margin-bottom:8px; }
.rulesposter .rp-rule { transition:all .3s; position:relative; }
.rulesposter .rp-rule.hl { color:#c9483c; font-weight:700; animation:rulepulse 1s ease infinite; }
@keyframes rulepulse { 0%,100%{text-shadow:none} 50%{text-shadow:0 0 12px rgba(201,72,60,.8)} }
.rulesposter.zoomed { transform:rotate(0) scale(1.9); transform-origin:right center; z-index:50;
  transition:transform .5s ease; }

/* ---- 厨房门洞：门框 + 景深 + 内部剪影 ---- */
.kitchendoor { position:absolute; z-index:4; cursor:pointer; }
.kitchendoor .kd-frame { position:absolute; inset:0; border-radius:3px;
  background-image:repeating-linear-gradient(0deg, rgba(0,0,0,.05) 0 46px, rgba(0,0,0,.12) 46px 48px),
    linear-gradient(rgba(255,255,255,.14), rgba(0,0,0,.24)), linear-gradient(#98805f,#7d684c);
  box-shadow:0 16px 28px rgba(0,0,0,.38), inset 0 2px 0 rgba(255,255,255,.16); }
.kitchendoor .kd-frame::after { content:""; position:absolute; inset:7px;
  border:2px solid rgba(0,0,0,.28); box-shadow:inset 0 0 0 1px rgba(255,255,255,.08); }
.kitchendoor .kd-opening { position:absolute; inset:11px; overflow:hidden;
  background:linear-gradient(#16130f, #0b0908); }
.kitchendoor .kd-farwall { position:absolute; inset:0 0 24% 0; opacity:.5;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 17px, rgba(0,0,0,.16) 17px 19px),
    linear-gradient(#241f18, #171310); }
.kitchendoor .kd-fridge { position:absolute; left:16%; bottom:24%; width:30%; height:44%;
  background:linear-gradient(90deg, #2c261e, #1d1913 70%); border-radius:3px 3px 0 0;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06); opacity:.8; }
.kitchendoor .kd-counter { position:absolute; right:8%; bottom:24%; width:34%; height:16%;
  background:#221d16; border-top:2px solid rgba(255,255,255,.05); border-radius:1px; opacity:.85; }
.kitchendoor .kd-floor { position:absolute; left:0; right:0; bottom:0; height:24%;
  background-image:
    repeating-linear-gradient(90deg, rgba(0,0,0,.28) 0 2px, transparent 2px 30px),
    linear-gradient(#3a332a, #211c15); }
.kitchendoor .kd-shade { position:absolute; inset:0; pointer-events:none;
  box-shadow:inset 0 0 30px 12px rgba(0,0,0,.82), inset 0 14px 20px -10px rgba(0,0,0,.9); }
.kitchendoor .kd-label { position:absolute; top:12px; left:11px; color:#8d7f66; font-size:13px;
  letter-spacing:3px; writing-mode:vertical-lr; text-shadow:0 1px 2px rgba(0,0,0,.8); }

/* ---- 走廊门洞：纵深 + 尽头微光 ---- */
.hallwaygap { position:absolute; z-index:4; cursor:pointer; }
.hallwaygap .hg-frame { position:absolute; inset:0; border-radius:3px;
  background-image:repeating-linear-gradient(0deg, rgba(0,0,0,.06) 0 46px, rgba(0,0,0,.14) 46px 48px),
    linear-gradient(rgba(255,255,255,.08), rgba(0,0,0,.3)), linear-gradient(#6e5c44,#57472f);
  box-shadow:0 16px 28px rgba(0,0,0,.4), inset 0 2px 0 rgba(255,255,255,.1); }
.hallwaygap .hg-frame::after { content:""; position:absolute; inset:7px;
  border:2px solid rgba(0,0,0,.3); }
.hallwaygap .hg-opening { position:absolute; inset:11px; overflow:hidden;
  background:linear-gradient(#12100d, #050403 70%); }
.hallwaygap .hg-corridor { position:absolute; inset:0;
  background:
    linear-gradient(90deg, rgba(74,62,46,.5) 0 9%, transparent 26%),
    linear-gradient(-90deg, rgba(74,62,46,.5) 0 9%, transparent 26%); }
.hallwaygap .hg-lamp { position:absolute; left:50%; top:10%; width:26px; height:7px;
  transform:translateX(-50%); background:#2e2a24; border-radius:2px;
  box-shadow:0 0 40px 14px rgba(255,226,160,.10); }
.hallwaygap .hg-fardoor { position:absolute; left:50%; bottom:26%; width:30%; height:46%;
  transform:translateX(-50%); background:linear-gradient(#171310, #0e0b09);
  border:1px solid rgba(255,255,255,.04); box-shadow:0 0 0 2px rgba(0,0,0,.5); }
.hallwaygap .hg-fardoor::after { content:""; position:absolute; right:5px; top:48%;
  width:3px; height:3px; border-radius:50%; background:rgba(255,230,170,.25); }
.hallwaygap .hg-floor { position:absolute; left:0; right:0; bottom:0; height:26%;
  background-image:
    repeating-linear-gradient(0deg, rgba(0,0,0,.24) 0 2px, transparent 2px 13px),
    linear-gradient(#2c251c, #171310); }
.hallwaygap .hg-shade { position:absolute; inset:0; pointer-events:none;
  box-shadow:inset 0 0 34px 14px rgba(0,0,0,.88); }
.hallwaygap .hg-label { position:absolute; bottom:6px; left:50%; transform:translateX(-50%);
  color:#6b604c; font-size:12px; letter-spacing:3px; white-space:nowrap;
  text-shadow:0 1px 2px rgba(0,0,0,.8); }

/* ============================================================
   厨房
   ============================================================ */
#room-kitchen .wall { background:linear-gradient(#9fae9a,#8d9c88); }
#room-kitchen .floor { background:linear-gradient(#b9b4a8,#a49f93);
  background-image:repeating-linear-gradient(0deg, rgba(0,0,0,.06) 0 2px, transparent 2px 80px); }
.fridge { position:absolute; left:180px; top:170px; width:170px; height:330px; z-index:6; cursor:pointer; }
.fridge .fr-body { position:absolute; inset:0; background:linear-gradient(#d8dde0,#c2c8cc);
  border-radius:10px; box-shadow:0 14px 26px rgba(0,0,0,.35); }
.fridge .fr-split { position:absolute; left:6px; right:6px; top:118px; height:3px; background:#9aa1a6; }
.fridge .fr-handle { position:absolute; right:12px; width:8px; height:70px; background:#8f979c;
  border-radius:4px; }
.fridge .fr-handle.t { top:24px; } .fridge .fr-handle.b { top:142px; }
.fridge .fr-door { position:absolute; inset:0; transform-origin:left center; transition:transform .5s ease;
  z-index:2; }
.fridge .fr-door .fr-doorface { position:absolute; inset:0; background:linear-gradient(#d8dde0,#c2c8cc);
  border-radius:10px; }
/* 开门：门板转到侧边不再遮挡食物，也不再拦截点击 */
.fridge.open .fr-door { transform:perspective(700px) rotateY(72deg) translateX(-6px); pointer-events:none; }
.fridge.open .fr-doorface { border-left:10px solid #a4abb1;
  box-shadow:-18px 12px 36px rgba(0,0,0,.32); }
.fridge .fr-inside { position:absolute; inset:10px; background:#eef2f4; border-radius:8px;
  display:flex; flex-direction:column; padding:14px 10px; gap:10px; }
.fridge .fr-shelf { flex:1; border-bottom:2px solid #c3cbd0; display:flex; align-items:center;
  justify-content:space-around; }
.fr-note { position:absolute; left:410px; top:200px; color:#6b5d2e; font-size:13px;
  padding:8px 12px; transform:rotate(-4deg); }
.fooditem { width:44px; height:44px; display:flex; align-items:center; justify-content:center;
  font-size:30px; cursor:pointer; transition:transform .15s; position:relative; }
.fooditem:hover { transform:scale(1.25); }
.fooditem .fd-tag { position:absolute; bottom:-18px; left:50%; transform:translateX(-50%);
  font-size:10.5px; color:#57616a; white-space:nowrap; }
.counter { position:absolute; left:640px; top:380px; width:420px; height:150px; z-index:5;
  background:linear-gradient(#c9c2b2,#b5ae9e); border:3px solid #8f887a; border-radius:6px; }
.counter .ct-top { position:absolute; left:-6px; right:-6px; top:-14px; height:16px;
  background:#d9d2c2; border-radius:4px; box-shadow:0 4px 8px rgba(0,0,0,.25); }
.pudding-note { position:absolute; left:700px; top:180px; color:rgba(0,0,0,.5); font-size:13px;
  letter-spacing:1px; }

/* ============================================================
   厕所
   ============================================================ */
#room-toilet .wall { background:linear-gradient(#8fa3ad,#7d919b); }
#room-toilet .floor { background:linear-gradient(#aab4b8,#96a0a4); }
.washer { position:absolute; left:130px; top:270px; width:200px; height:210px; z-index:6; cursor:pointer; }
.washer .wa-body { position:absolute; inset:0; background:linear-gradient(#e4e7e9,#cdd1d4);
  border-radius:10px; box-shadow:0 14px 26px rgba(0,0,0,.35); }
.washer .wa-lid { position:absolute; left:16px; right:16px; top:12px; height:66px; background:#b7bcc0;
  border-radius:8px; border:3px solid #9aa0a5; transform-origin:top center; transition:transform .45s ease;
  z-index:3; }
.washer.open .wa-lid { transform:rotateX(112deg); }
.washer .wa-window { position:absolute; left:26px; right:26px; top:96px; height:92px; border-radius:50%;
  background:radial-gradient(#39434b,#20262b); border:6px solid #aab0b5; overflow:hidden; }
.washer .wa-water { position:absolute; inset:0; background:rgba(90,140,170,.25); }
.washer .wa-panel { position:absolute; right:14px; top:18px; width:44px; height:24px; background:#9aa1a6;
  border-radius:4px; }
.washer .wa-bubbles { position:absolute; inset:0; pointer-events:none; }
.sink { position:absolute; right:150px; top:330px; width:180px; height:110px; z-index:5;
  background:linear-gradient(#e2e5e7,#cdd1d4); border-radius:10px; box-shadow:0 10px 20px rgba(0,0,0,.3); }
.sink::before { content:""; position:absolute; left:30px; right:30px; top:18px; height:34px;
  background:#9fb3bd; border-radius:8px; }
.mirror { position:absolute; right:150px; top:150px; width:180px; height:130px; background:#39474f;
  border:5px solid #b9bec2; z-index:5; }

/* ============================================================
   走廊
   ============================================================ */
#room-hall .wall { background:linear-gradient(#4a4440,#3a3532); }
#room-hall .floor { background:linear-gradient(#4f4238,#3d322a); }
.hall-end { position:absolute; left:0; right:0; top:0; bottom:0; }
.hall-lamp { position:absolute; left:50%; top:60px; transform:translateX(-50%); width:120px; height:30px;
  background:#2c2a28; border-radius:6px; box-shadow:0 20px 90px 30px rgba(255,230,160,.13); }
.hall-doors .hd { position:absolute; width:90px; height:190px; background:#2e2a26;
  border:3px solid rgba(0,0,0,.4); }
.hall-back { position:absolute; left:50%; bottom:130px; transform:translateX(-50%);
  width:430px; height:130px; cursor:pointer; z-index:8; }

/* ============================================================
   奶娃实体
   ============================================================ */
.naiva { position:absolute; z-index:20; cursor:pointer; transition:none; }
.naiva .nv-sprite { position:absolute; left:0; bottom:0; background-repeat:no-repeat;
  background-position:left bottom; image-rendering:auto;
  filter:drop-shadow(0 6px 5px rgba(0,0,0,.28)); }
/* 地下车库最深处的走失奶娃：压低亮度藏进立柱阴影里，保留原点击轮廓。 */
.naiva.ch2-dark-stray .nv-sprite { filter:brightness(.16) saturate(.55) contrast(.9) drop-shadow(0 2px 3px rgba(0,0,0,.55)); }
.naiva.carried { z-index:70; }
.naiva.carried .nv-sprite { animation:carriedwiggle .18s ease infinite; }
@keyframes carriedwiggle { 0%,100%{transform:rotate(-6deg)} 50%{transform:rotate(6deg)} }
.naiva.spin .nv-sprite { animation:nvspin 2.6s linear infinite; }
@keyframes nvspin { from{transform:rotate(0)} to{transform:rotate(360deg)} }
.naiva.still .nv-sprite { animation:none; }
.naiva .nv-acc { position:absolute; inset:0; pointer-events:none; }
.nv-acc .eggshell { position:absolute; width:26px; height:18px; background:#f5f1e6;
  border:2px solid #d9d2bd; border-radius:50% 50% 8% 8%; top:2%; left:30%; }
.nv-acc .bubbles { position:absolute; width:14px; height:14px; border-radius:50%;
  background:rgba(210,235,250,.85); box-shadow:0 0 6px rgba(210,235,250,.8); }
.nv-acc .milkbot { position:absolute; width:16px; height:26px; background:#f2f2ec;
  border:2px solid #c9c9c0; border-radius:4px 4px 8px 8px; }
.nv-acc .milkbot::before { content:""; position:absolute; top:-8px; left:4px; width:8px; height:9px;
  background:#e7c9a2; border-radius:4px 4px 0 0; }
.nv-tag { position:absolute; top:-30px; left:50%; transform:translateX(-50%); background:rgba(8,8,10,.85);
  color:#ffe9a8; border:1px solid rgba(255,233,168,.5); font-size:12px; padding:1px 8px;
  white-space:nowrap; letter-spacing:1px; }
.nv-tag.nonum { color:#e05548; border-color:rgba(224,85,72,.6); }
.nv-balloon { position:absolute; top:-58px; left:50%; transform:translateX(-50%); background:#fff;
  color:#222; font-size:14px; font-weight:700; padding:4px 12px; border-radius:12px; white-space:nowrap;
  animation:balloon 1.6s ease forwards; z-index:30; }
@keyframes balloon { 0%{opacity:0; transform:translate(-50%,8px)} 15%{opacity:1; transform:translate(-50%,0)}
  75%{opacity:1} 100%{opacity:0; transform:translate(-50%,-14px)} }
.naiva.backview .nv-sprite { filter:brightness(.5) blur(.6px) drop-shadow(0 6px 5px rgba(0,0,0,.4)); }
.naiva.backview::after { content:""; position:absolute; left:12%; top:6%; width:76%; height:46%;
  background:radial-gradient(ellipse, rgba(70,60,30,.55), transparent 70%); }
.naiva.lying .nv-sprite { transform:rotate(-84deg) translateY(-8%); transform-origin:center; }
.naiva.frozen .nv-sprite { animation:none !important; }

/* ============================================================
   玩家手（交互提示）
   ============================================================ */
.handhint { position:absolute; z-index:65; pointer-events:none; color:#fff; font-size:13px;
  background:rgba(8,8,10,.8); border:1px solid rgba(255,255,255,.3); padding:3px 10px;
  letter-spacing:1px; animation:handbob 1.2s ease infinite; white-space:nowrap; }
@keyframes handbob { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-5px)} }

/* 奶娃趴脸特写 */
.facebaby { position:absolute; left:50%; top:52%; width:254px; height:326px;
  transform:translate(-50%,-50%) scale(2.6); z-index:40; cursor:pointer; }
.facebaby .nv-sprite { filter:drop-shadow(0 20px 24px rgba(0,0,0,.6)); }

/* 床上视角卧室变暗 */
.room.dimmed .wall, .room.dimmed .floor { filter:brightness(.42) saturate(.7); }
.room.dimmed .door, .room.dimmed .wardrobe, .room.dimmed .bed, .room.dimmed .bedhead { filter:brightness(.5); }

/* 主卧门缝黄影 */
.crack-thing { position:absolute; }

/* ============================================================
   贴图纹理（SVG）与伪 3D 质感
   ============================================================ */
/* --- 地面/墙面纹理 --- */
#room-bedroom .floor::after, #room-living .floor::after, #room-hall .floor::after,
#room-bedroom .wall::after, #room-living .wall::after, #room-hall .wall::after,
#room-kitchen .floor::after, #room-toilet .floor::after, #room-kitchen .wall::after,
#room-toilet .wall::after {
  content:""; position:absolute; inset:0; pointer-events:none;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='96' height='96'><circle cx='24' cy='24' r='2' fill='%23000' fill-opacity='.05'/><circle cx='72' cy='72' r='2' fill='%23000' fill-opacity='.05'/><circle cx='72' cy='24' r='1.1' fill='%23fff' fill-opacity='.06'/><circle cx='24' cy='72' r='1.1' fill='%23fff' fill-opacity='.06'/></svg>");
  opacity:.9;
}
#room-bedroom .floor::after, #room-living .floor::after, #room-hall .floor::after {
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='120'><g stroke='%23000' stroke-opacity='.25' stroke-width='2'><line x1='0' y1='30' x2='220' y2='30'/><line x1='0' y1='60' x2='220' y2='60'/><line x1='0' y1='90' x2='220' y2='90'/><line x1='70' y1='0' x2='70' y2='30'/><line x1='150' y1='30' x2='150' y2='60'/><line x1='40' y1='60' x2='40' y2='90'/><line x1='180' y1='90' x2='180' y2='120'/></g><g stroke='%23000' stroke-opacity='.09' fill='none'><path d='M0 12 q40 -5 80 0 t70 3 t70 -4'/><path d='M0 44 q50 6 100 0 t120 2'/><path d='M0 76 q30 -6 70 0 t80 4 t70 -5'/><path d='M0 106 q45 5 90 0 t130 -3'/></g></svg>");
}
#room-kitchen .floor::after, #room-toilet .floor::after {
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='72' height='72'><rect x='1.5' y='1.5' width='69' height='69' fill='none' stroke='%23000' stroke-opacity='.15' stroke-width='3'/><rect x='5' y='5' width='62' height='28' fill='%23fff' fill-opacity='.05'/></svg>");
}
/* 厨房/厕所墙面下半瓷砖腰线 */
#room-kitchen .wall::after, #room-toilet .wall::after {
  top:auto; height:200px;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='72' height='72'><rect x='1.5' y='1.5' width='69' height='69' fill='none' stroke='%23000' stroke-opacity='.18' stroke-width='3'/><rect x='5' y='5' width='62' height='28' fill='%23fff' fill-opacity='.07'/></svg>");
  opacity:.55;
}
/* 走廊墙面竖条纹板 */
#room-hall .wall::after {
  background-image:repeating-linear-gradient(90deg, rgba(0,0,0,.16) 0 3px, transparent 3px 90px);
}

/* --- 家具立体感 --- */
/* 电视：玻璃反光 + 底座阴影 */
#room-living .tv .tv-screen::after { content:""; position:absolute; inset:0;
  background:linear-gradient(115deg, transparent 34%, rgba(255,255,255,.07) 42%, rgba(255,255,255,.02) 50%, transparent 58%);
  pointer-events:none; z-index:5; }
#room-living .tv .tv-stand { box-shadow:0 18px 22px rgba(0,0,0,.45); }

/* 沙发：坐垫缝线 + 靠背顶面（末层保留原底色） */
#room-living .sofa .sf-seat { background-image:
  linear-gradient(rgba(255,255,255,.06), rgba(0,0,0,.10)),
  repeating-linear-gradient(90deg, transparent 0 32.2%, rgba(0,0,0,.20) 32.2% 33%, transparent 33% 65.2%, rgba(0,0,0,.20) 65.2% 66%, transparent 66%),
  linear-gradient(#82708a,#6e5d76);
  border-top:2px solid rgba(255,255,255,.08); }
#room-living .sofa .sf-back { background-image:linear-gradient(rgba(255,255,255,.07), rgba(0,0,0,.16)),
  linear-gradient(#6f5f74,#5d4e62);
  box-shadow:inset 0 3px 0 rgba(255,255,255,.06); }
#room-living .sofa .sf-arm { background-image:linear-gradient(rgba(255,255,255,.10), rgba(0,0,0,.12));
  box-shadow:0 10px 16px rgba(0,0,0,.35); }

/* 床：被褥褶皱 + 枕头立体（末层保留原底色） */
#room-bedroom .bed .quilt { background-image:
  repeating-linear-gradient(94deg, transparent 0 46px, rgba(255,255,255,.05) 46px 50px, rgba(0,0,0,.08) 50px 54px, transparent 54px 96px),
  linear-gradient(rgba(255,255,255,.05), rgba(0,0,0,.14)),
  linear-gradient(#7c8894,#66727e); }
#room-bedroom .bed .mattress { border-top:2px solid rgba(255,255,255,.14); }
#room-bedroom .bed .pillow { background-image:linear-gradient(160deg, #efe9dc, #cfc8ba);
  box-shadow:inset 0 -6px 10px rgba(0,0,0,.12), 0 6px 10px rgba(0,0,0,.35); }

/* 衣柜：木纹 + 顶面 */
#room-bedroom .wardrobe { background-image:
  repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 3px, transparent 3px 9px),
  linear-gradient(rgba(255,255,255,.06), rgba(0,0,0,.2)), linear-gradient(#5d4f41,#4c3f33);
  box-shadow:0 18px 30px rgba(0,0,0,.4); }
#room-bedroom .wardrobe::before { content:""; position:absolute; left:-5px; right:-5px; top:-10px;
  height:12px; background:#3f342b; border-radius:4px 4px 0 0;
  box-shadow:inset 0 2px 0 rgba(255,255,255,.10); }

/* 垃圾桶：竖向棱纹 */
#room-living .trashcan .tc-body { background-image:
  repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 3px, rgba(0,0,0,.10) 3px 7px, transparent 7px 12px),
  linear-gradient(#5e6660,#48504a); }
#room-living .trashcan .tc-lid { background-image:linear-gradient(rgba(255,255,255,.10), rgba(0,0,0,.10));
  box-shadow:0 4px 8px rgba(0,0,0,.35); }

/* 门：木纹 */
.door .door-panel { background-image:
  repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 3px, transparent 3px 8px),
  linear-gradient(rgba(255,255,255,.06), rgba(0,0,0,.16)); box-shadow:inset 0 0 0 2px rgba(0,0,0,.18); }

/* 冰箱：拉丝金属 + 圆柱光影 + 贴纸（末层保留原底色） */
#room-kitchen .fridge .fr-body { background-image:
  repeating-linear-gradient(90deg, rgba(255,255,255,.055) 0 2px, transparent 2px 5px),
  linear-gradient(90deg, rgba(255,255,255,.16), rgba(255,255,255,0) 22%, rgba(0,0,0,.06) 62%, rgba(0,0,0,.22)),
  linear-gradient(#d8dde0,#c2c8cc);
  box-shadow:0 22px 34px rgba(0,0,0,.42), inset 0 2px 0 rgba(255,255,255,.25); }
#room-kitchen .fridge .fr-doorface { background-image:
  repeating-linear-gradient(90deg, rgba(255,255,255,.055) 0 2px, transparent 2px 5px),
  linear-gradient(90deg, rgba(255,255,255,.14), rgba(255,255,255,0) 24%, rgba(0,0,0,.05) 60%, rgba(0,0,0,.20)),
  linear-gradient(#d8dde0,#c2c8cc); }
#room-kitchen .fridge .fr-doorface::after { content:"奶蛙牌"; position:absolute; left:16px; top:26px;
  font-size:11px; color:#7d8489; letter-spacing:2px; background:rgba(255,255,255,.55);
  padding:2px 7px; border-radius:3px; transform:rotate(-5deg); box-shadow:0 2px 4px rgba(0,0,0,.15); }
#room-kitchen .fridge .fr-handle { background-image:linear-gradient(90deg, #c8ced2, #878f94);
  box-shadow:0 2px 4px rgba(0,0,0,.3); }

/* 洗衣机：顶面 + 玻璃窗高光 + 拉丝面板 */
#room-toilet .washer .wa-body { background-image:
  linear-gradient(rgba(255,255,255,.10), rgba(0,0,0,.14)),
  linear-gradient(#e4e7e9,#cdd1d4);
  box-shadow:0 22px 34px rgba(0,0,0,.42), inset 0 2px 0 rgba(255,255,255,.3); }
#room-toilet .washer .wa-window::after { content:""; position:absolute; inset:0; border-radius:50%;
  background:radial-gradient(ellipse at 34% 28%, rgba(255,255,255,.30), rgba(255,255,255,.04) 46%, transparent 60%); }
#room-toilet .washer .wa-panel { background-image:linear-gradient(90deg, #cfd5d9, #9aa1a6);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.4); }
#room-toilet .washer .wa-panel::after { content:""; position:absolute; right:6px; top:5px;
  width:12px; height:12px; border-radius:50%; background:radial-gradient(#f4f7f8, #9aa1a6);
  box-shadow:0 0 0 2px #7d8489; }

/* 橱柜台面：柜门 + 拉手 + 顶面 */
#room-kitchen .counter { background-image:
  repeating-linear-gradient(90deg, transparent 0 138px, rgba(0,0,0,.22) 138px 141px),
  linear-gradient(rgba(255,255,255,.05), rgba(0,0,0,.14)), linear-gradient(#c9c2b2,#b5ae9e);
  box-shadow:0 18px 28px rgba(0,0,0,.38); }
#room-kitchen .counter::after { content:""; position:absolute; width:7px; height:26px;
  background:linear-gradient(#e8e2d4,#a89f8d); border-radius:3px; top:64px;
  box-shadow:141px 0 0 0 #b3ab99, 282px 0 0 0 #a89f8d; left:64px; }
#room-kitchen .counter .ct-top { background-image:linear-gradient(rgba(255,255,255,.16), rgba(0,0,0,.06));
  box-shadow:0 6px 10px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.3); }

/* 水池：铬金属 */
#room-toilet .sink { background-image:linear-gradient(rgba(255,255,255,.14), rgba(0,0,0,.10)),
  linear-gradient(#e2e5e7,#cdd1d4); box-shadow:0 14px 24px rgba(0,0,0,.4); }
#room-toilet .sink::before { background:#8fa6b2; box-shadow:inset 0 3px 6px rgba(0,0,0,.35); }
#room-toilet .mirror { background-image:linear-gradient(125deg, rgba(255,255,255,.10) 20%, transparent 45%, rgba(255,255,255,.06) 70%);
  box-shadow:inset 0 0 24px rgba(0,0,0,.5), 0 10px 18px rgba(0,0,0,.4); }

/* 守则海报：真实纸张质感（纤维噪点 + 黄化 + 卷边阴影） */
#room-living .rulesposter {
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='260'><filter id='pp'><feTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='3' seed='11'/><feColorMatrix type='matrix' values='0 0 0 0 0.40 0 0 0 0 0.33 0 0 0 0 0.21 0 0 0 0.06 0'/></filter><rect width='260' height='260' filter='url(%23pp)'/></svg>"),
    radial-gradient(150% 100% at 28% 12%, rgba(255,255,255,.20), transparent 52%),
    radial-gradient(58% 44% at 88% 94%, rgba(150,118,62,.13), transparent 72%),
    radial-gradient(44% 38% at 8% 90%, rgba(150,118,62,.10), transparent 70%),
    radial-gradient(30% 24% at 78% 30%, rgba(150,118,62,.07), transparent 75%),
    repeating-linear-gradient(0deg, transparent 0 24px, rgba(70,56,32,.045) 24px 25px),
    linear-gradient(158deg, #f7f1de 0%, #ede4c9 52%, #ddd0ae 100%);
  border-radius:3px 3px 7px 7px;
  box-shadow:
    0 14px 28px rgba(0,0,0,.40),
    0 3px 6px rgba(0,0,0,.24),
    inset 0 1px 0 rgba(255,255,255,.55),
    inset 0 0 46px rgba(122,96,52,.14);
}
#room-living .rulesposter::after {
  content:""; position:absolute; inset:0; pointer-events:none; border-radius:inherit;
  box-shadow:
    inset 0 0 0 1px rgba(122,100,60,.20),
    inset 0 -16px 24px -16px rgba(90,68,34,.42),
    inset 0 12px 16px -12px rgba(255,255,255,.55),
    inset 2px 0 6px -4px rgba(90,68,34,.25),
    inset -2px 0 6px -4px rgba(90,68,34,.25);
}
#room-living .rulesposter .rp-title { text-shadow:0 1px 0 rgba(255,255,255,.5); }

/* 大门（走廊尽头） */
#room-hall .door .door-panel { background-image:
  repeating-linear-gradient(0deg, rgba(0,0,0,.06) 0 40px, transparent 40px 84px),
  linear-gradient(rgba(255,255,255,.05), rgba(0,0,0,.2)); }

/* 冰箱便签：小纸条质感 + 胶带 */
#room-kitchen .fr-note {
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='pn'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='5'/><feColorMatrix type='matrix' values='0 0 0 0 0.42 0 0 0 0 0.36 0 0 0 0 0.24 0 0 0 0.07 0'/></filter><rect width='120' height='120' filter='url(%23pn)'/></svg>"),
    linear-gradient(172deg, #fdf7e2, #f1e8cc);
  box-shadow:0 5px 10px rgba(0,0,0,.28), inset 0 0 14px rgba(122,96,52,.10);
}
#room-kitchen .fr-note::before {
  content:""; position:absolute; left:50%; top:-9px; width:44px; height:16px;
  transform:translateX(-50%) rotate(-2deg);
  background:rgba(228,220,190,.55);
  border-left:1px solid rgba(255,255,255,.5); border-right:1px solid rgba(255,255,255,.5);
  box-shadow:0 1px 3px rgba(0,0,0,.18);
}

/* ============================================================
   暂停菜单
   ============================================================ */
#pausebtn { position:absolute; right:14px; top:12px; width:40px; height:40px;
  display:flex; align-items:center; justify-content:center; cursor:pointer;
  pointer-events:auto; z-index:81; opacity:.65; transition:opacity .15s, transform .15s; }
#pausebtn:hover { opacity:1; transform:translateY(-2px); }
#pausemenu { position:absolute; inset:0; z-index:140; background:rgba(2,2,4,.86);
  display:flex; align-items:center; justify-content:center; backdrop-filter:blur(3px); }
#pausemenu .pm-box { width:460px; background:#0f0e0a; border:1px solid #3a362c; padding:34px 40px;
  box-shadow:0 30px 90px rgba(0,0,0,.85); }
#pausemenu .pm-title { color:#ece7d8; font-size:26px; letter-spacing:12px; margin-bottom:22px;
  text-align:center; }
#pausemenu .pm-menu { display:flex; flex-direction:column; gap:10px; margin-bottom:24px; }
#pausemenu .pm-item { border:1px solid #4a463c; color:#e9e4d6; padding:11px 18px; font-size:16px;
  letter-spacing:4px; text-align:center; cursor:pointer; transition:all .2s; }
#pausemenu .pm-item:hover { background:#e9e4d6; color:#111; }
#pausemenu .pm-settings { border-top:1px solid #2c2a22; padding-top:18px; display:flex;
  flex-direction:column; gap:12px; }
#pausemenu .pm-set { display:flex; align-items:center; gap:14px; }
#pausemenu .ps-label { color:#9a9484; font-size:13px; letter-spacing:2px; width:70px; }
#pausemenu input[type=range] { flex:1; accent-color:#c9b06a; }
#pausemenu .pm-seg { display:flex; gap:8px; }
#pausemenu .pm-seg span { color:#9a9484; font-size:13px; padding:3px 14px; border:1px solid #3a362c;
  cursor:pointer; letter-spacing:2px; }
#pausemenu .pm-seg span.on { background:#c9b06a; color:#111; border-color:#c9b06a; }
#pausemenu .pm-tip { margin-top:20px; color:#57534a; font-size:11.5px; letter-spacing:1px;
  text-align:center; line-height:1.8; }

/* ============================================================
   选档界面（3 档位）
   ============================================================ */
#slotmodal { position:absolute; inset:0; background:rgba(0,0,0,.78); z-index:210;
  display:flex; align-items:center; justify-content:center; }
#slotmodal .am-box { width:520px; background:#111009; border:1px solid #3a362c; padding:30px 34px;
  box-shadow:0 30px 90px rgba(0,0,0,.8); }
#slotmodal .am-title { color:#ece7d8; font-size:22px; letter-spacing:6px; margin-bottom:18px; }
#slotmodal .am-close { margin-top:20px; color:#c9c4b2; border:1px solid #4a463c; padding:8px 30px;
  width:max-content; cursor:pointer; font-size:14px; letter-spacing:4px; }
#slotmodal .am-close:hover { background:#c9c4b2; color:#111; }
.slot-list { display:flex; flex-direction:column; gap:12px; }
.slot-card { display:flex; align-items:center; gap:16px; border:1px solid #3a362c;
  padding:14px 18px; cursor:pointer; transition:all .2s; background:rgba(255,255,255,.02); }
.slot-card:hover { border-color:#c9b06a; background:rgba(201,176,106,.07); }
.slot-card.empty { border-style:dashed; }
.slot-card.empty:hover { border-color:#8d8570; background:rgba(255,255,255,.04); }
.slot-no { color:#8d8570; font-size:12px; letter-spacing:3px; width:52px; flex:none; }
.slot-info { flex:1; min-width:0; }
.slot-beat { color:#e9e4d6; font-size:16px; letter-spacing:2px; }
.slot-meta { color:#6f6a5c; font-size:12px; margin-top:4px; letter-spacing:1px; }
.slot-del { color:#6f6a5c; font-size:14px; width:28px; height:28px; flex:none;
  display:flex; align-items:center; justify-content:center; border:1px solid #3a362c;
  border-radius:4px; transition:all .15s; }
.slot-del:hover { color:#e05548; border-color:#e05548; }
.slot-del.confirm { color:#fff; background:#e05548; border-color:#e05548; width:auto;
  padding:0 10px; font-size:12px; letter-spacing:1px; white-space:nowrap; }
#pausemenu .pm-tip b { color:#c9b06a; font-weight:700; letter-spacing:1px; }
#pausemenu .pm-tip a { color:#d9c98a; text-decoration:none; border-bottom:1px dashed #7a6c48;
  cursor:pointer; letter-spacing:1px; }
#pausemenu .pm-tip a:hover { color:#f3e6b4; border-bottom-color:#f3e6b4; }

/* 标题页链接行 + 作者说弹窗 */
#title .t-links { display:flex; gap:26px; margin-top:2px; }
#authormodal { position:absolute; inset:0; background:rgba(0,0,0,.78); z-index:210;
  display:flex; align-items:center; justify-content:center; }
#authormodal .am-box { width:560px; background:#111009; border:1px solid #3a362c; padding:32px 38px;
  box-shadow:0 30px 90px rgba(0,0,0,.8); }
#authormodal .am-title { color:#ece7d8; font-size:22px; letter-spacing:6px; margin-bottom:18px; }
#authormodal .am-text { color:#a29c8a; font-size:14.5px; line-height:2.15; }
#authormodal .am-text b { color:#d9cf9f; font-weight:700; }
#authormodal .am-close { margin-top:22px; color:#c9c4b2; border:1px solid #4a463c; padding:8px 30px;
  width:max-content; cursor:pointer; font-size:14px; letter-spacing:4px; }
#authormodal .am-close:hover { background:#c9c4b2; color:#111; }

/* 群号点击复制 + 复制成功提示 */
.qq-num { cursor:pointer; border-bottom:1px dashed rgba(201,176,106,.55); transition:color .15s; }
.qq-num:hover { color:#c9b06a; }
#title .t-qq { color:#c9b06a; border-bottom:1px solid rgba(201,176,106,.5); }
#title .t-qq:hover { color:#f3e6b4; }
#nwtoast { position:absolute; left:50%; bottom:96px; transform:translateX(-50%); z-index:230;
  background:rgba(20,18,12,.94); border:1px solid #c9b06a; color:#f3e6b4; font-size:14px;
  padding:9px 24px; letter-spacing:2px; pointer-events:none;
  animation:nwtoast 1.7s ease forwards; white-space:nowrap; }
@keyframes nwtoast { 0%{opacity:0; transform:translate(-50%,10px)}
  12%{opacity:1; transform:translate(-50%,0)} 80%{opacity:1} 100%{opacity:0} }

/* ============================================================
   客厅补充陈设：电视柜 / 地毯 / 绿植
   ============================================================ */
.tvcabinet { position:absolute; height:70px; z-index:5; border-radius:4px;
  background-image:
    repeating-linear-gradient(90deg, transparent 0 92px, rgba(0,0,0,.22) 92px 95px),
    linear-gradient(rgba(255,255,255,.07), rgba(0,0,0,.16)),
    linear-gradient(#6a5540,#55432f);
  box-shadow:0 16px 26px rgba(0,0,0,.38), inset 0 2px 0 rgba(255,255,255,.12); }
.tvcabinet::after { content:""; position:absolute; width:7px; height:22px; border-radius:3px;
  background:linear-gradient(#d9cfb8,#9c8f74); top:24px;
  box-shadow:96px 0 0 0 #b3a586; left:44px; }
.tvcabinet::before { content:""; position:absolute; left:-5px; right:-5px; top:-8px; height:10px;
  background:#4e3e2c; border-radius:3px; box-shadow:inset 0 2px 0 rgba(255,255,255,.10); }

.rug { position:absolute; height:110px; z-index:3; border-radius:16px; opacity:.9;
  background-image:
    repeating-linear-gradient(90deg, rgba(0,0,0,.10) 0 4px, transparent 4px 58px),
    radial-gradient(80% 100% at 50% 0%, rgba(255,255,255,.06), transparent 70%),
    linear-gradient(#8f6a52,#7c5943);
  box-shadow:0 10px 18px rgba(0,0,0,.30), inset 0 0 0 3px rgba(0,0,0,.14), inset 0 0 0 6px rgba(255,235,200,.10); }

.plant { position:absolute; width:56px; height:92px; z-index:6; pointer-events:none;
  filter:drop-shadow(0 10px 10px rgba(0,0,0,.35)); }
.plant::before { content:""; position:absolute; left:12px; bottom:0; width:32px; height:34px;
  background-image:linear-gradient(rgba(255,255,255,.08), rgba(0,0,0,.14)), linear-gradient(#a25b41,#8a4a34);
  border-radius:4px 4px 10px 10px; }
.plant::after { content:""; position:absolute; left:6px; bottom:26px; width:44px; height:58px;
  background:
    radial-gradient(16px 30px at 12px 40px, #4d7a45 60%, transparent 62%),
    radial-gradient(16px 32px at 32px 36px, #5b8a4f 60%, transparent 62%),
    radial-gradient(14px 26px at 22px 22px, #679657 60%, transparent 62%),
    radial-gradient(12px 20px at 8px 18px, #527f49 60%, transparent 62%); }
.plant.small { transform:scale(.72); transform-origin:bottom left; }

/* 第八只出现时的微光提示 */
.naiva.hintpulse .nv-sprite { animation:hintpulse 1.7s ease infinite; }
@keyframes hintpulse {
  0%,100% { filter:brightness(1) drop-shadow(0 6px 5px rgba(0,0,0,.28)); }
  50% { filter:brightness(1.28) drop-shadow(0 0 20px rgba(255,238,170,.85)); }
}

/* ============================================================
   开发者模式
   ============================================================ */
#devmodal, #title-vol-modal { position:absolute; inset:0; background:rgba(0,0,0,.82); z-index:220;
  display:flex; align-items:center; justify-content:center; }
#devmodal .am-box { width:480px; background:#0d0c09; border:1px solid #3a362c; padding:28px 34px;
  box-shadow:0 30px 90px rgba(0,0,0,.85); }
#devmodal .am-title { color:#ece7d8; font-size:20px; letter-spacing:6px; margin-bottom:18px; }
#title-vol-modal .am-box { width:460px; background:#0d0c09; border:1px solid #3a362c; padding:28px 34px;
  box-shadow:0 30px 90px rgba(0,0,0,.85); }
#title-vol-modal .am-title { color:#ece7d8; font-size:20px; letter-spacing:6px; margin-bottom:18px; }
#title-vol-modal .am-close { color:#c9c4b2; border:1px solid #4a463c; padding:8px 30px;
  width:max-content; margin:18px auto 0; cursor:pointer; font-size:14px; letter-spacing:4px; transition:all .15s; }
#title-vol-modal .am-close:hover { background:#c9c4b2; color:#111; }
#devpw { width:100%; background:#08070a; border:1px solid #3a362c; color:#e9e4d6; font-size:17px;
  padding:11px 16px; letter-spacing:6px; outline:none; text-align:center; font-family:Consolas,monospace; }
#devpw:focus { border-color:#c9b06a; }
#devmodal #devok { margin:16px auto 0; }
#devmodal .am-close { color:#c9c4b2; border:1px solid #4a463c; padding:8px 30px;
  width:max-content; cursor:pointer; font-size:14px; letter-spacing:4px; transition:all .15s; }
#devmodal .am-close:hover { background:#c9c4b2; color:#111; }
#devpanel .dev-tip { color:#6f6a5c; font-size:12px; letter-spacing:2px; margin-bottom:12px; }
.dev-list { display:flex; flex-direction:column; gap:8px; max-height:420px; overflow-y:auto; }
.dev-head { color:#8d8570; font-size:12px; letter-spacing:4px; margin:4px 0 2px; }
.dev-item { border:1px solid #3a362c; color:#d9d4c6; font-size:14px; letter-spacing:2px;
  padding:9px 16px; cursor:pointer; transition:all .15s; }
.dev-item:hover { border-color:#c9b06a; background:rgba(201,176,106,.08); }
.dev-item.locked { color:#55524a; border-style:dashed; cursor:default; }
.dev-item.locked:hover { border-color:#3a362c; background:none; }

/* ============================================================
   手机全屏横屏提示（桌面端不显示）
   ============================================================ */
#mobgate { position:fixed; inset:0; z-index:1000; background:rgba(4,4,3,.97);
  display:flex; align-items:center; justify-content:center; }
#mobgate .mg-inner { display:flex; flex-direction:column; align-items:center; gap:14px;
  padding:30px 44px; text-align:center; max-width:82vw; }
#mobgate .mg-icon { width:96px; height:96px; display:flex; align-items:center; justify-content:center;
  animation:mgrotate 2.4s ease-in-out infinite; }
#mobgate .mg-icon svg { width:100%; height:100%; }
@keyframes mgrotate { 0%,100%{transform:rotate(0)} 22%{transform:rotate(-90deg)} 60%{transform:rotate(-90deg)} 82%{transform:rotate(0)} }
#mobgate .mg-title { color:#ece7d8; font-size:25px; font-weight:700; letter-spacing:4px; }
#mobgate .mg-sub { color:#8d8570; font-size:14px; letter-spacing:2px; }
#mobgate .mg-btn { margin-top:10px; color:#0d0d0c; background:#e9e4d6; padding:14px 34px;
  font-size:17px; letter-spacing:5px; cursor:pointer; border:1px solid #e9e4d6;
  box-shadow:0 0 26px rgba(233,228,214,.22); }
#mobgate .mg-btn:active { background:#c9b06a; border-color:#c9b06a; }
#mobgate .mg-tip { color:#57534a; font-size:12.5px; letter-spacing:2px; }
#mobgate .mg-skip { color:#4a473f; font-size:12px; letter-spacing:2px; cursor:pointer;
  border-bottom:1px dashed #33312a; padding-bottom:1px; }
/* 显隐完全由 JS 控制（触屏/竖屏/窗口过小），CSS 不做强制隐藏 */

/* 全屏横屏下的安全区适配（刘海/圆角） */
@media (max-width: 900px) and (orientation: landscape) {
  #taskbar { left:max(14px, env(safe-area-inset-left)); top:calc(58px + env(safe-area-inset-top)); }
  #clockbox { right:max(58px, calc(env(safe-area-inset-right) + 52px)); top:max(10px, env(safe-area-inset-top)); }
  #phonebtn { right:max(12px, env(safe-area-inset-right)); bottom:max(12px, env(safe-area-inset-bottom)); }
  #dialog { width:min(820px, 92vw); bottom:max(18px, env(safe-area-inset-bottom)); }
  #phone { width:min(340px, 42vw); height:min(520px, 78vh); }
}

/* 开发者面板底部 */
#devpanel .dev-foot { display:flex; align-items:center; justify-content:space-between; margin-top:16px; }
#devpanel .dev-relock { color:#5c584e; font-size:12px; letter-spacing:1px; cursor:pointer;
  border-bottom:1px dashed #3a362c; padding-bottom:1px; }
#devpanel .dev-relock:hover { color:#a09a8a; }

/* 首页公告栏（临时网址 / 测试版说明） */
#title .t-notice { border:1px solid rgba(201,176,106,.4); background:rgba(201,176,106,.07);
  color:#a8a08c; font-size:13px; line-height:1.9; letter-spacing:1px;
  padding:10px 16px; max-width:560px; border-radius:4px; margin-bottom:4px; }
#title .t-notice b { color:#d9cf9f; }
#title .t-notice .tn-icon { margin-right:6px; }
#title .t-notice a { color:#c9b06a; text-decoration:none; border-bottom:1px dashed rgba(201,176,106,.6); }
#title .t-notice a:hover { color:#f3e6b4; border-bottom-color:#f3e6b4; }
#title .t-notice .tn-dim { color:#57534a; font-size:12px; }

/* 左上角全屏按钮（与右上角暂停键同风格） */
#fsbtn { position:absolute; left:14px; top:12px; width:40px; height:40px;
  display:flex; align-items:center; justify-content:center; cursor:pointer;
  pointer-events:auto; z-index:81; opacity:.65; transition:opacity .15s, transform .15s; }
#fsbtn:hover { opacity:1; transform:translateY(-2px); }
