
:root{
  --deep:#1f3d24;--green:#2f6b3a;--mid:#4d8a4f;--paper:#fbfaf3;
  --line:#c9d8bb;--gold:#d9a441;--shadow:0 6px 18px rgba(31,61,36,.12);
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent;}
html,body{margin:0;padding:0;}
body{
  padding:calc(10px + env(safe-area-inset-top)) 10px calc(18px + env(safe-area-inset-bottom));
  font-family:"Microsoft YaHei","Noto Sans SC",-apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;
  background:radial-gradient(circle at 12% 0%, #f6f9ee 0%, #e8f0da 55%, #dfe9cf 100%);
  color:var(--deep);min-height:100vh;overflow-x:hidden;
}
.wrap{max-width:680px;margin:0 auto;}
button{font-family:inherit;cursor:pointer}

/* ===== 启动页 ===== */
#splash{position:fixed;inset:0;z-index:95;overflow:hidden;display:flex;flex-direction:column;align-items:center;justify-content:center;
  background:linear-gradient(180deg,#d8ecff 0%,#e8f5fb 42%,#eef7e4 70%,#dcecc9 100%);transition:opacity .55s ease;}
#splash.out{opacity:0;pointer-events:none;}
#splash .grassband{position:absolute;left:-4%;right:-4%;bottom:0;height:20%;
  background:linear-gradient(180deg,#8dbe72,#5c9750);border-radius:50% 50% 0 0/26px 26px 0 0;box-shadow:0 -2px 10px rgba(46,86,42,.15);}
#splash .grassband:after{content:"";position:absolute;left:0;right:0;top:-6px;height:12px;
  background:radial-gradient(circle at 10px 6px,#8dbe72 5px,transparent 5.5px) repeat-x;background-size:20px 12px;}
#splash .sun{position:absolute;top:8%;right:12%;width:64px;height:64px;border-radius:50%;
  background:radial-gradient(circle,#fff4c9,#ffdf9b);box-shadow:0 0 34px rgba(255,225,150,.65);}
.cloudwrap{position:relative;width:min(86vw,430px);margin-bottom:6px;animation:pop .7s cubic-bezier(.2,.9,.3,1.4) both;}
@keyframes pop{from{transform:scale(.86);opacity:0;}to{transform:scale(1);opacity:1;}}
.cloudwrap svg{width:100%;display:block;filter:drop-shadow(0 10px 18px rgba(47,107,58,.12));}
.cloudwrap .brandplate{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:58%;}
.brandplate{text-align:center;}
.brandplate .rule{height:9px;border-top:1.6px solid #a9c8da;border-bottom:1.6px solid #a9c8da;opacity:.95;}
.brandplate h2{margin:9px 0;font-size:clamp(15px,4.6vw,23px);line-height:1.3;color:#5aabe0;letter-spacing:2.5px;font-weight:700;
  text-shadow:0 1px 0 #fff,0 0 14px rgba(255,255,255,.95);}
.brandplate .sub{margin-top:2px;font-size:9.5px;color:#8aa7b8;letter-spacing:2px;}
.loadwrap{position:relative;z-index:3;width:min(68vw,330px);margin-top:30px;}
.loadtrack{height:12px;border-radius:99px;background:rgba(255,255,255,.92);border:1.5px solid #cbdcc3;overflow:hidden;box-shadow:inset 0 1px 2px rgba(0,0,0,.06);}
.loadfill{display:block;height:100%;width:0;border-radius:99px;background:linear-gradient(90deg,#b8e2f7,#5aabe0);transition:width 1.2s cubic-bezier(.2,.7,.3,1);}
.loadtxt{margin-top:9px;text-align:center;font-size:10.5px;color:#6d8a63;letter-spacing:.5px;}
.loadtxt b{color:#4a7a42;}

/* ===== 顶部 ===== */
.hud{background:var(--paper);border:2px solid var(--line);border-radius:18px;padding:10px 12px;box-shadow:var(--shadow);margin-bottom:10px;}
.userbar{display:flex;flex-direction:column;gap:8px;padding:2px 2px 9px;border-bottom:1px dashed var(--line);margin-bottom:9px;}
.ub-top{display:flex;align-items:center;gap:8px;min-width:0;}
.ub-btns{display:grid;grid-template-columns:repeat(6,1fr);gap:6px;}
.ub-btns .sw{margin:0;text-align:center;padding:6px 2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
@media(max-width:420px){.ub-btns{grid-template-columns:repeat(3,1fr);}}
.userbar .av{width:34px;height:34px;border-radius:50%;background:#e5eed8;border:2px solid #cddcbd;display:flex;align-items:center;justify-content:center;font-size:18px;flex:0 0 auto;overflow:hidden;}
.userbar .who{display:flex;flex-direction:column;line-height:1.25;min-width:0;}
.userbar .who b{font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:120px;}
.userbar .who span{font-size:9.5px;color:#7b8f74;display:flex;align-items:center;gap:4px;}
.userbar .who .dot{width:6px;height:6px;border-radius:99px;background:#4f9c46;display:inline-block;}
.userbar .sw{font-size:10px;border:1px solid var(--line);background:#fff;border-radius:8px;padding:5px 9px;color:#4b6446;font-weight:700;cursor:pointer;font-family:inherit;}
.hud-top{display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
.title{flex:1;min-width:0;}
.title h1{font-size:17px;margin:0;letter-spacing:.5px;}
.title small{font-size:10.5px;color:#7b8f74;font-weight:400;display:block;margin-top:2px;}
.incpill{font-size:11px;background:#eef5e2;border:1px solid var(--line);color:#3f6b3a;padding:5px 9px;border-radius:999px;white-space:nowrap;font-weight:700;}
.incpill.env{background:#fff6e2;border-color:#e6d3a6;color:#8a6a2a;}
.incpill.zoo{background:#eef2ff;border-color:#cfd8f5;color:#3b4a8a;}
.money{display:flex;align-items:flex-end;gap:6px;margin-top:9px;}
.money b{font-size:26px;line-height:1.1;color:#a6741b;font-variant-numeric:tabular-nums;}
.money span{font-size:11px;color:#8a7a55;padding-bottom:4px;}
.money em{font-style:normal;font-size:10.5px;color:#7b8f74;margin-left:auto;padding-bottom:4px;}
.traitbar{margin-top:8px;display:flex;align-items:center;gap:6px;background:#f4f7ec;border:1px dashed var(--line);border-radius:12px;
  padding:6px 8px;font-size:11px;color:#4b6446;min-height:30px;overflow:hidden;}
.traitbar .k{color:#7b8f74;font-size:10px;flex:0 0 auto;}
.traitbar .v{font-weight:700;color:var(--green);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.traitbar .lv{margin-left:auto;background:var(--deep);color:#f2f7e8;font-size:10px;border-radius:8px;padding:2px 6px;flex:0 0 auto;}

/* ===== 效果栏 ===== */
.fx{background:var(--paper);border:2px solid var(--line);border-radius:18px;padding:9px 10px 8px;box-shadow:var(--shadow);margin-bottom:10px;}
.fxhead{display:flex;align-items:baseline;gap:6px;font-size:12.5px;font-weight:700;margin-bottom:7px;}
.fxhead em{font-style:normal;font-size:10px;color:#7b8f74;font-weight:400;}
.fxgrid{display:grid;grid-template-columns:1fr 1fr;gap:6px;}
.fxc{border:1px solid var(--line);border-radius:10px;padding:5px 7px;background:#f7faf0;font-size:10.5px;line-height:1.35;cursor:pointer;position:relative;transition:.15s;}
.fxc.on{background:#edf6e2;border-color:#9cc47e;box-shadow:inset 0 0 0 1px #9cc47e;}
.fxc .t{font-weight:700;font-size:11px;display:flex;align-items:center;gap:4px;}
.fxc .p{color:#849a7b;font-size:9.5px;}
.fxc.on .p{color:#4b7a3f;}
.fxc .dot{width:6px;height:6px;border-radius:99px;background:#cbd8c0;flex:0 0 auto;}
.fxc.on .dot{background:#4f9c46;}

/* ===== 地图 ===== */
.mapcard{background:var(--paper);border:2px solid var(--line);border-radius:18px;padding:8px;box-shadow:var(--shadow);}
.mapwrap{position:relative;border-radius:12px;overflow:hidden;background:#cfe2b8;}
#map{display:grid;gap:3px;padding:3px;}
.tile{position:relative;aspect-ratio:1/1;border-radius:9px;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;
  transition:transform .12s;overflow:hidden;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;}
.tile:active{transform:scale(.97);}
.tile.grass{background:#cfe6b3;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'%3E%3Cpath d='M6 52 Q7 44 6 40 M9 52 Q10 45 12 41' stroke='%23a9cf82' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3Cpath d='M28 30 Q29 23 27 19 M31 30 Q32 24 34 20' stroke='%23a9cf82' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3Cpath d='M46 50 Q47 43 45 39 M49 50 Q50 44 52 40' stroke='%23a9cf82' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3Ccircle cx='20' cy='38' r='1.8' fill='%23f2e28a' opacity='.8'/%3E%3Ccircle cx='55' cy='22' r='1.6' fill='%23fff3c4' opacity='.8'/%3E%3Ccircle cx='38' cy='55' r='1.5' fill='%23f2e28a' opacity='.6'/%3E%3C/svg%3E");background-size:cover;}
.tile.mountain{background:#a5754a;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60' preserveAspectRatio='none'%3E%3Cpolygon points='3,60 21,20 39,60' fill='%237c5130' opacity='.85'/%3E%3Cpolygon points='17.5,25 21,20 24.5,25' fill='%23f4ecd9'/%3E%3Cpolygon points='22,60 40,30 58,60' fill='%236e4526' opacity='.8'/%3E%3Cpolygon points='37.5,35 40,30 42.5,35' fill='%23f4ecd9' opacity='.9'/%3E%3Cpolygon points='0,60 10,42 22,60' fill='%236b4224' opacity='.55'/%3E%3Ccircle cx='46' cy='16' r='1.4' fill='%23f4ecd9' opacity='.5'/%3E%3Ccircle cx='12' cy='12' r='1.2' fill='%23f4ecd9' opacity='.45'/%3E%3C/svg%3E");background-size:cover;}
.tile.rock{background:#e8dfc4;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'%3E%3Cpolygon points='6,42 14,26 30,28 34,44' fill='%23b3a07f'/%3E%3Cpolygon points='14,26 30,28 28,36 16,34' fill='%23c9b892'/%3E%3Cpolygon points='30,52 40,38 54,40 56,54' fill='%23a8967a'/%3E%3Cpolygon points='40,38 54,40 52,46 42,45' fill='%23c2b189'/%3E%3Cpolygon points='40,14 48,8 54,16 50,24 42,22' fill='%23b3a07f'/%3E%3Cpolygon points='48,8 54,16 50,20 46,16' fill='%23cfc0a0'/%3E%3Ccircle cx='22' cy='14' r='2.5' fill='%23a8967a' opacity='.7'/%3E%3Ccircle cx='52' cy='52' r='2' fill='%23b3a07f' opacity='.7'/%3E%3C/svg%3E");background-size:cover;}
.tile.water{background:#a9d7ea;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'%3E%3Cpath d='M4 22 Q10 17 16 22 Q22 27 28 22' stroke='%236fb4d4' stroke-width='2' fill='none' stroke-linecap='round' opacity='.85'/%3E%3Cpath d='M32 40 Q38 35 44 40 Q50 45 56 40' stroke='%236fb4d4' stroke-width='2' fill='none' stroke-linecap='round' opacity='.85'/%3E%3Cpath d='M8 48 Q12 44 16 48 Q20 52 24 48' stroke='%2388c4de' stroke-width='1.6' fill='none' stroke-linecap='round' opacity='.7'/%3E%3Cpath d='M36 14 Q40 10 44 14' stroke='%2388c4de' stroke-width='1.6' fill='none' stroke-linecap='round' opacity='.7'/%3E%3Ccircle cx='50' cy='26' r='1.6' fill='%23eaf6fc' opacity='.9'/%3E%3Ccircle cx='14' cy='34' r='1.3' fill='%23eaf6fc' opacity='.8'/%3E%3C/svg%3E");background-size:cover;}
.tile.locked{background:#a9d7ea;filter:saturate(.55) brightness(.92);}
.tile.locked::after{content:"🔒";position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:16px;opacity:.85;}
.tile.valid{outline:3px solid var(--gold);outline-offset:-3px;animation:pulse 1.2s infinite;}
@keyframes pulse{0%,100%{box-shadow:inset 0 0 0 3px rgba(217,164,65,.3);}50%{box-shadow:inset 0 0 0 3px rgba(217,164,65,.9);}}
.tile.moving{outline:3px solid #d08a4e;outline-offset:-3px;}
.tile .lock{font-size:16px;opacity:.85;}
.decorbadge{position:absolute;top:1px;left:2px;font-size:13px;z-index:3;filter:drop-shadow(0 2px 2px rgba(0,0,0,.3));}
/* --- 3D 立体动物手办 --- */
.fig{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;z-index:2;perspective:160px;}
.fig .base{position:absolute;bottom:2px;width:70%;height:10px;border-radius:50%;
  background:radial-gradient(ellipse at 50% 30%,rgba(255,255,255,.75),rgba(90,70,40,.5) 55%,rgba(50,35,15,.65));box-shadow:0 3px 6px rgba(0,0,0,.3);}
.fig .body{position:relative;z-index:2;font-size:clamp(16px,5vw,30px);line-height:1.15;transform:translateY(-3px);
  filter:drop-shadow(0 4px 3px rgba(0,0,0,.35)) drop-shadow(0 1px 0 rgba(255,255,255,.6));
  animation:bob 2.6s ease-in-out infinite;transform-style:preserve-3d;}
@keyframes bob{50%{transform:translateY(-6px) rotateY(14deg)}}
.fig .body::after{content:"";position:absolute;left:22%;top:-6%;width:56%;height:38%;border-radius:50%;
  background:radial-gradient(circle at 30% 30%,rgba(255,255,255,.65),transparent 65%);}
.fig .lvbar{position:relative;z-index:3;font-size:7.5px;line-height:1.3;color:#fff;background:var(--green);border-radius:4px;padding:0 3px;margin-bottom:1px;}
.fig .lvbar.boost{background:#a9413f;}
.tile .prod{position:absolute;top:1px;right:2px;font-size:9px;color:#2e7d3b;font-weight:800;z-index:4;text-shadow:0 1px 0 #fff;opacity:0;transition:opacity .3s;}
.tile .prod.show{opacity:1;animation:rise 1s ease-out;}
@keyframes rise{to{transform:translateY(-12px)}}
.tile .rar{position:absolute;top:0;right:0;font-size:7.5px;font-weight:700;color:#fff;border-radius:0 8px 0 5px;padding:1px 3px;z-index:2;}

.ops{display:flex;gap:6px;margin-top:8px;flex-wrap:wrap;}
.btn{flex:1 1 0;min-width:0;border:2px solid var(--line);background:#fff;color:var(--deep);border-radius:12px;padding:8px 4px;font-size:12px;
  font-weight:700;cursor:pointer;line-height:1.3;box-shadow:0 2px 0 #e4ebd9;transition:transform .1s;}
.btn:active{transform:translateY(1px);box-shadow:none;}
.btn.primary{background:var(--green);color:#f4f9ec;border-color:var(--green);}
.btn.gold{background:var(--gold);color:#fff;border-color:var(--gold);}
.btn:disabled{opacity:.45;}
.btn small{display:block;font-size:9.5px;font-weight:400;opacity:.8;}
.hint{background:#fff;border:2px dashed var(--line);border-radius:12px;padding:8px 10px;font-size:11.5px;color:#4b6446;margin-top:6px;display:none;}
.hint.on{display:block;}

/* ===== 卡池 ===== */
.dockhead{display:flex;align-items:baseline;gap:8px;margin:12px 2px 6px;}
.dockhead h2{font-size:13px;margin:0;}
.dockhead em{font-style:normal;font-size:10.5px;color:#7b8f74;}
.dock{display:flex;gap:8px;overflow-x:auto;padding:6px 2px 18px;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;}
.dock::-webkit-scrollbar{height:4px;}
.dock::-webkit-scrollbar-thumb{background:#c3d4b2;border-radius:9px;}
.card{flex:0 0 auto;width:92px;scroll-snap-align:start;background:var(--paper);border:2px solid var(--line);border-radius:14px;
  padding:0 4px 6px;text-align:center;cursor:pointer;position:relative;transition:.12s;}
.card:active{transform:scale(.96);}
.card.sel{border-color:var(--gold);box-shadow:0 0 0 3px rgba(217,164,65,.28);transform:translateY(-3px);}
.card .top{font-size:8.5px;color:#fff;border-radius:0 0 8px 8px;padding:2px 3px;margin:0 -4px 4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.card .ic{font-size:23px;line-height:1.2;display:block;}
.card .nm{font-size:10.5px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.card .pr{font-size:9.5px;color:#8a7a55;margin-top:1px;}
.card .lv{font-size:8.5px;color:#6a8163;line-height:1.35;white-space:nowrap;}
.card .badge{position:absolute;top:-6px;right:-4px;font-size:8.5px;font-weight:700;color:#fff;border-radius:5px;padding:1px 4px;z-index:2;background:var(--green);}

/* ===== 登录 / 头像 ===== */
.avatar-row{display:flex;gap:12px;align-items:center;margin:10px 0 12px;}
.avatar-big{width:84px;height:84px;border-radius:50%;background:#e9f1dd;border:2px solid #cddcbd;display:flex;align-items:center;justify-content:center;font-size:34px;overflow:hidden;flex:0 0 auto;}
.avatar-big img{width:100%;height:100%;object-fit:cover;}
.avbtns{display:flex;flex-direction:column;gap:6px;flex:1;}
.avbtns .btn{padding:8px 6px;font-size:12px;flex:none;}
input.nameinput{width:100%;border:2px solid var(--line);border-radius:12px;padding:11px 12px;font-family:inherit;font-size:14px;color:var(--deep);background:#fff;}
.profiles{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px;}
.pchip{display:flex;align-items:center;gap:5px;border:1.5px solid var(--line);border-radius:999px;padding:2px 9px 2px 2px;font-size:10.5px;background:#f7faf0;cursor:pointer;color:var(--deep);}
.pchip .pav{width:22px;height:22px;border-radius:50%;overflow:hidden;background:#e5eed8;display:flex;align-items:center;justify-content:center;font-size:12px;}
.pchip .pav img{width:100%;height:100%;object-fit:cover;}
.userbar .av img{width:100%;height:100%;object-fit:cover;display:block;}

/* ===== 弹窗 / 提示 ===== */
#modal{position:fixed;inset:0;background:rgba(24,40,26,.55);z-index:130;display:none;align-items:center;justify-content:center;padding:18px;}
#modal.open{display:flex;}
.sheet{background:var(--paper);border-radius:20px;padding:18px;width:100%;max-width:400px;border:2px solid var(--line);
  box-shadow:0 20px 50px rgba(0,0,0,.3);max-height:86vh;overflow:auto;animation:up .18s ease-out;}
@keyframes up{from{transform:translateY(40px);opacity:.5}}
.sheet h3{margin:0 0 10px;font-size:16px;}
#toast{position:fixed;left:50%;top:calc(10px + env(safe-area-inset-top,0px));bottom:auto;transform:translate(-50%,-12px);z-index:99999;
  display:flex;flex-direction:column;gap:6px;align-items:center;pointer-events:none;}
.tmsg{background:rgba(31,61,36,.96);color:#f2f7e8;padding:9px 16px;border-radius:999px;font-size:12.5px;font-weight:700;max-width:88vw;text-align:center;
  box-shadow:0 8px 22px rgba(20,35,22,.35);animation:tup .25s ease-out;}
.tmsg.warn{background:rgba(169,65,63,.96);}
.tmsg.good{background:rgba(46,120,52,.96);}
@keyframes tup{from{transform:translateY(10px);opacity:0}}
#event{position:fixed;top:calc(52px + env(safe-area-inset-top));left:50%;transform:translateX(-50%);z-index:60;display:none;
  background:var(--gold);color:#fff;border-radius:14px;padding:8px 16px;font-weight:900;font-size:12.5px;box-shadow:0 8px 22px rgba(20,35,22,.3);cursor:pointer;max-width:88vw;text-align:center;}
#night{position:fixed;inset:0;background:rgba(10,10,50,.35);z-index:5;display:none;pointer-events:none;}
/* 弹窗内通用 */
.mhead{display:flex;align-items:center;gap:8px;margin-bottom:8px;flex-wrap:wrap;}
.mhead h3{margin:0;font-size:16px;}
.mhead .sub{font-size:11px;color:#7b8f74;}
.mnote{font-size:12px;color:#4b6446;background:#f4f7ec;border:1px dashed var(--line);border-radius:10px;padding:6px 9px;margin:6px 0;line-height:1.55;}
.mnote.good{border-color:#9cc47e;background:#edf6e2;}
.mrow{display:flex;gap:6px;flex-wrap:wrap;align-items:center;margin:6px 0;}
.mbtn{background:var(--green);color:#f4f9ec;border:none;border-radius:10px;padding:8px 14px;font-weight:700;font-size:12.5px;cursor:pointer;}
.mbtn.gray{background:#fff;color:var(--deep);border:2px solid var(--line);}
.mbtn.green{background:#4f9c46;color:#fff;}
.mbtn.red{background:#a9413f;color:#fff;}
.mbtn:active{transform:translateY(1px);}
.mbtn[disabled]{opacity:.45;}
.gitem{display:inline-flex;flex-direction:column;align-items:center;gap:2px;width:80px;padding:7px 4px;border-radius:12px;background:#fff;
  border:1.5px solid var(--line);font-size:11px;font-weight:700;margin:3px;cursor:pointer;color:var(--deep);}
.gitem .em{font-size:22px;}
.gitem:active{transform:translateY(2px);}
.gitem[disabled]{opacity:.5;}
input.minput,select.minput,textarea.minput{border:2px solid var(--line);border-radius:12px;padding:9px 11px;font-size:13px;font-family:inherit;
  background:#fff;color:var(--deep);width:100%;}
.rankrow{display:flex;gap:8px;align-items:center;padding:7px 9px;border-radius:12px;background:#fff;border:1.5px solid var(--line);margin:5px 0;
  font-weight:700;font-size:12px;color:var(--deep);}
.achv-done{opacity:.55;}
h4.sec{margin:10px 0 4px;font-size:13px;color:var(--green);}
.small{font-size:10px;color:#7b8f74;}
/* 收线标尺 */
#gauge{position:relative;height:44px;border-radius:12px;background:linear-gradient(90deg,#4aa3ff,#7fc4ff);overflow:hidden;margin:10px 0;box-shadow:inset 0 2px 6px rgba(0,0,0,.25);}
#gauge .zone{position:absolute;top:0;bottom:0;background:linear-gradient(90deg,#6ce06c,#3fbf3f);opacity:.85;}
#gauge .perfect{position:absolute;top:0;bottom:0;background:#ffd23f;opacity:.95;}
#gauge .mark{position:absolute;top:-2px;bottom:-2px;width:6px;background:#fff;border:2px solid #d33;border-radius:3px;box-shadow:0 0 6px rgba(255,255,255,.8);}

/* ===== 夜间 ===== */
body.night .wrap{filter:saturate(.8) brightness(.86);}
body.night{background:radial-gradient(circle at 12% 0%, #dfe4ea 0%, #c9d3d8 55%, #b8c4c9 100%);}

/* ===== 皮肤主题（只改配色） ===== */
body[data-skin="candy"]{background:radial-gradient(circle at 12% 0%, #fff7f9 0%, #ffe9f0 55%, #fbd9e3 100%);--paper:#fffaf7;--line:#efc9d6;}
body[data-skin="ocean"]{background:radial-gradient(circle at 12% 0%, #f2fbff 0%, #dff2fb 55%, #cfe8f5 100%);--paper:#f7fdff;--line:#bcdcea;}
body[data-skin="night"]{background:radial-gradient(circle at 20% 0%, #2a2550 0%, #1b1a3a 55%, #12122a 100%);--paper:#232245;--line:#4b4a7a;--deep:#e8eaf7;color:#e8eaf7;}
body[data-skin="night"] .hud,body[data-skin="night"] .fx,body[data-skin="night"] .mapcard,body[data-skin="night"] .sheet,
body[data-skin="night"] .card,body[data-skin="night"] .tile,body[data-skin="night"] .rankrow,body[data-skin="night"] .gitem{color:#e8eaf7;}
body[data-skin="night"] .title small,body[data-skin="night"] .small,body[data-skin="night"] .mhead .sub{color:#b9bce0;}
body[data-skin="night"] .mbtn.gray{background:#2c2b52;color:#e8eaf7;border-color:#4b4a7a;}
body[data-skin="night"] .btn{background:#2c2b52;color:#e8eaf7;border-color:#4b4a7a;}
body[data-skin="gold"]{background:radial-gradient(circle at 12% 0%, #fff9ea 0%, #fdf1cf 55%, #f7e5b8 100%);--paper:#fffdf4;--line:#e2cf9a;}
body[data-skin="lowperf"] .fig .body{animation:none;}
