/* ============================================================
   🐱 喵星手机 MeowOS — rua猫乐园 2.0 皮肤
   风格：iOS 风小手机 OS（满屏机身 / 状态栏 / 锁屏 / 桌面图标 / 底部抽屉）
   与 1.0 的「粉色卡片长页面」完全不同的视觉体系。
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

:root {
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', Roboto, sans-serif;
  --ink: #1c1c1e;
  --ink2: #8e8e93;
  --card: #ffffff;
  --card2: #f2f2f7;
  --line: #e5e5ea;
  --pink: #FF6B9D;
  --pink-d: #E84C88;
  --blue: #0A84FF;
  --gold: #FFB300;
  --ok: #34C759;
  --bad: #FF3B30;
  --radius: 22px;
  --nav-h: 46px;
  --status-h: 44px;
}

html, body { height: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: #000;
  overflow: hidden;
  user-select: none; -webkit-user-select: none;
  touch-action: manipulation;
}

/* ===== 机身 ===== */
.phone {
  width: 100vw; height: 100vh; height: 100dvh;
  position: relative; overflow: hidden;
  background: #000;
}
@media (min-width: 460px) {
  body { display: flex; align-items: center; justify-content: center; background: #0d0d10; }
  .phone {
    width: 400px; height: 860px; max-height: 96vh;
    border-radius: 46px; padding: 0;
    box-shadow: 0 0 0 11px #1a1a1c, 0 0 0 13px #2c2c2e, 0 30px 70px rgba(0,0,0,.6);
    overflow: hidden;
  }
}
.screen {
  width: 100%; height: 100%; position: relative; overflow: hidden;
  background:
    radial-gradient(130% 80% at 15% 0%, #FFE3EF 0%, rgba(255,227,239,0) 55%),
    radial-gradient(120% 80% at 100% 5%, #E7F0FF 0%, rgba(231,240,255,0) 50%),
    linear-gradient(165deg, #FFF4F8 0%, #F4F5FB 55%, #FFF7EE 100%);
  border-radius: inherit;
}
@media (min-width: 460px) { .screen { border-radius: 34px; } }

/* ===== 状态栏 ===== */
.status-bar {
  position: absolute; top: 0; left: 0; right: 0; height: var(--status-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 30px 0; font-size: 15px; font-weight: 700; color: var(--ink);
  z-index: 1000; pointer-events: none;
}
.status-left { letter-spacing: .3px; }
.status-right { display: flex; align-items: center; gap: 6px; }
.signal-icon { display: flex; align-items: flex-end; gap: 2px; height: 12px; }
.signal-bar { width: 3.5px; background: var(--ink); border-radius: 1px; }
.signal-bar:nth-child(1){height:5px} .signal-bar:nth-child(2){height:7px}
.signal-bar:nth-child(3){height:9px} .signal-bar:nth-child(4){height:11px}
.battery-icon { width: 25px; height: 13px; border: 1.5px solid var(--ink); border-radius: 4px; position: relative; padding: 1.5px; }
.battery-level { width: 72%; height: 100%; background: var(--ink); border-radius: 1.5px; }
.battery-tip { position: absolute; right: -3.5px; top: 3.5px; width: 2px; height: 5px; background: var(--ink); border-radius: 0 1px 1px 0; }

/* ===== 开机 ===== */
.boot {
  position: absolute; inset: 0; z-index: 9500;
  background: linear-gradient(160deg, #FFEAF3, #EAF1FF);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
}
.boot-logo { font-size: 88px; animation: bootBounce 1.4s ease infinite; }
@keyframes bootBounce { 0%,100%{transform:translateY(0) scale(1)} 50%{transform:translateY(-14px) scale(1.05)} }
.boot-name { font-size: 30px; font-weight: 900; letter-spacing: 4px; color: var(--pink-d); }
.boot-sub { font-size: 13px; font-weight: 600; letter-spacing: 2px; color: var(--ink2); }
.boot-progress { width: 160px; height: 4px; background: rgba(0,0,0,.08); border-radius: 3px; overflow: hidden; margin-top: 18px; }
.boot-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--pink), var(--pink-d)); animation: bootBar 1.8s ease forwards; }
@keyframes bootBar { to { width: 100%; } }
.boot.hide { opacity: 0; transform: scale(1.05); transition: opacity .5s ease, transform .5s ease; pointer-events: none; }

/* ===== 锁屏 ===== */
.lock-screen {
  position: absolute; inset: 0; z-index: 900;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 90px 30px 46px;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(255,180,210,.5), transparent 60%),
    linear-gradient(170deg, #FFE0EC, #E4ECFF 60%, #FFF0DE);
  transition: transform .45s cubic-bezier(.4,0,.2,1), opacity .45s ease;
}
.lock-screen.unlocked { transform: translateY(-100%); opacity: 0; pointer-events: none; }
.lock-time { text-align: center; margin-top: 10px; }
.lock-hours { font-size: 74px; font-weight: 300; letter-spacing: -2px; font-variant-numeric: tabular-nums; color: var(--ink); }
.lock-date { font-size: 16px; font-weight: 500; color: var(--ink); opacity: .7; margin-top: 2px; }
.lock-cat { font-size: 96px; animation: bootBounce 2.4s ease infinite; filter: drop-shadow(0 8px 12px rgba(0,0,0,.12)); }
.lock-bottom { display: flex; flex-direction: column; align-items: center; gap: 16px; width: 100%; }
.lock-hint { font-size: 13px; color: var(--ink); opacity: .65; animation: hintPulse 2s ease infinite; }
@keyframes hintPulse { 0%,100%{opacity:.65} 50%{opacity:.25} }
.lock-unlock-bar {
  width: 90%; max-width: 300px; height: 58px; border-radius: 30px;
  background: rgba(255,255,255,.45); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.6); position: relative; overflow: hidden;
}
.unlock-slider {
  position: absolute; left: 4px; top: 4px; width: 50px; height: 50px; border-radius: 50%;
  background: #fff; box-shadow: 0 3px 10px rgba(0,0,0,.15);
  display: flex; align-items: center; justify-content: center; font-size: 22px;
  animation: slideHint 2s ease infinite;
}
@keyframes slideHint { 0%,100%{transform:translateX(0)} 50%{transform:translateX(14px)} }

/* ===== 主屏幕（桌面） ===== */
.home-screen {
  position: absolute; inset: 0; z-index: 10;
  display: flex; flex-direction: column;
  padding: calc(var(--status-h) + 12px) 0 20px;
  opacity: 0; pointer-events: none; transition: opacity .4s ease;
}
.home-screen.active { opacity: 1; pointer-events: auto; }
.home-top { text-align: center; padding: 14px 20px 6px; }
.home-clock { font-size: 56px; font-weight: 200; letter-spacing: -1px; color: var(--ink); font-variant-numeric: tabular-nums; }
.home-greet { font-size: 14px; color: var(--ink2); font-weight: 600; margin-top: 2px; }
.app-grid-full {
  flex: 1; display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: min-content; gap: 22px 6px;
  padding: 26px 22px 0; align-content: start;
}
.app {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  cursor: pointer; transition: transform .2s cubic-bezier(.34,1.56,.64,1);
}
.app:active { transform: scale(.88); }
.app-ico {
  width: 60px; height: 60px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center; font-size: 32px;
  box-shadow: 0 6px 14px rgba(0,0,0,.14); position: relative;
}
.app-ico.grad-pink { background: linear-gradient(150deg, #FF9DC0, #FF5C93); }
.app-ico.grad-gold { background: linear-gradient(150deg, #FFD86B, #FFA000); }
.app-ico.grad-blue { background: linear-gradient(150deg, #7BB6FF, #2C7BE5); }
.app-ico.grad-green { background: linear-gradient(150deg, #86E29A, #34B368); }
.app-ico.grad-purple { background: linear-gradient(150deg, #C79BFF, #8B5CF6); }
.app-ico.grad-gray { background: linear-gradient(150deg, #C9CDD6, #8A909C); }
.app-label { font-size: 11px; font-weight: 600; color: var(--ink); text-shadow: 0 1px 2px rgba(255,255,255,.6); }
.app-badge {
  position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--bad); color: #fff; border-radius: 9px; font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; border: 2px solid #FFF4F8;
}
.home-dots { display: flex; justify-content: center; gap: 7px; padding: 8px 0; }
.home-dots .dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(0,0,0,.2); }
.home-dots .dot.active { background: rgba(0,0,0,.5); }
.bottom-dock {
  margin: 0 auto; width: calc(100% - 26px); max-width: 360px; height: 84px;
  background: rgba(255,255,255,.45); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.6); border-radius: 30px;
  display: flex; align-items: center; justify-content: space-around; padding: 0 14px;
}
.bottom-dock .app { gap: 0; }
.bottom-dock .app-label { display: none; }

/* ===== APP 页面（从右滑入） ===== */
.page {
  position: absolute; inset: 0; z-index: 20;
  display: flex; flex-direction: column;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(255,220,235,.4), transparent 55%),
    linear-gradient(170deg, #FFF6FA, #F5F6FB);
  transform: translateX(100%); transition: transform .32s cubic-bezier(.4,0,.2,1);
  visibility: hidden;
}
.page.active { transform: translateX(0); visibility: visible; }
.app-nav {
  height: var(--nav-h); flex-shrink: 0; margin-top: var(--status-h);
  display: flex; align-items: center; justify-content: space-between; padding: 0 8px;
  background: rgba(255,255,255,.7); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.nav-btn {
  min-width: 44px; height: 36px; border: none; background: none; cursor: pointer;
  font-size: 20px; color: var(--blue); border-radius: 10px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.nav-btn:active { background: rgba(0,0,0,.05); }
.nav-title { font-size: 17px; font-weight: 700; color: var(--ink); }
.app-body { flex: 1; overflow-y: auto; padding: 16px 15px 30px; -webkit-overflow-scrolling: touch; }
.app-body::-webkit-scrollbar { width: 0; }

/* ===== 登录页 ===== */
.login-body { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 20px; }
.login-cat { font-size: 84px; margin: 12px 0 4px; animation: bootBounce 2.6s ease infinite; }
.login-title { font-size: 26px; font-weight: 900; color: var(--pink-d); }
.login-sub { font-size: 13px; color: var(--ink2); margin: 6px 0 22px; }
.field { width: 100%; text-align: left; margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--ink2); font-weight: 600; margin: 0 0 6px 4px; }
.field input {
  width: 100%; padding: 13px 16px; border: none; border-radius: 14px; font-size: 15px;
  background: #fff; color: var(--ink); outline: none; box-shadow: 0 2px 8px rgba(0,0,0,.05);
  transition: box-shadow .2s;
}
.field input:focus { box-shadow: 0 0 0 3px rgba(255,107,157,.25); }

/* ===== 按钮 ===== */
.btn {
  width: 100%; padding: 14px; border: none; border-radius: 16px; font-size: 16px; font-weight: 800;
  cursor: pointer; margin-top: 10px; transition: transform .15s, filter .2s, box-shadow .2s;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: linear-gradient(135deg, var(--pink), var(--pink-d)); color: #fff; box-shadow: 0 8px 20px rgba(232,76,136,.35); }
.btn-ghost { background: rgba(0,0,0,.05); color: var(--ink); }
.btn-gold { background: linear-gradient(135deg, #FFD86B, #FFA000); color: #fff; box-shadow: 0 8px 20px rgba(255,160,0,.32); }
.btn-sm { width: auto; padding: 11px 18px; font-size: 14px; margin: 0; }
.btn:disabled { opacity: .4; filter: grayscale(.3); cursor: not-allowed; transform: none; }

/* ===== 钱包条 ===== */
.wallet-strip {
  display: flex; align-items: center; gap: 10px; padding: 14px;
  background: #fff; border-radius: 18px; box-shadow: 0 4px 14px rgba(0,0,0,.06); margin-bottom: 12px;
}
.ws-item { display: flex; align-items: center; gap: 9px; flex: 1; }
.ws-icon { font-size: 26px; }
.ws-label { font-size: 11px; color: var(--ink2); font-weight: 600; }
.ws-val { font-size: 18px; font-weight: 900; color: var(--ink); }
.ws-signin { border: none; background: linear-gradient(135deg, #86E29A, #34B368); color: #fff; font-weight: 800; font-size: 13px; padding: 10px 14px; border-radius: 14px; cursor: pointer; flex-shrink: 0; box-shadow: 0 4px 12px rgba(52,179,104,.3); }
.ws-signin:active { transform: scale(.95); }
.ws-signin:disabled { opacity: .5; filter: grayscale(.4); }
.penalty-strip { background: linear-gradient(135deg, #FFB3B3, #FF6B6B); color: #fff; text-align: center; padding: 10px; border-radius: 14px; font-size: 13px; font-weight: 700; margin-bottom: 12px; animation: hintPulse 1.8s ease infinite; }

/* ===== 猫卡片 ===== */
.cat-list { display: flex; flex-direction: column; gap: 14px; }
.cat-card {
  background: #fff; border-radius: 22px; padding: 18px; position: relative; overflow: hidden;
  box-shadow: 0 8px 22px rgba(0,0,0,.07);
}
.cat-card.yd { border-top: 4px solid #B0BEC5; }
.cat-card.lh { border-top: 4px solid var(--gold); }
.cat-card .penalty-cover {
  position: absolute; inset: 0; z-index: 5; background: rgba(255,255,255,.55);
  backdrop-filter: blur(3px); display: none; align-items: center; justify-content: center; border-radius: 22px;
}
.cat-card .penalty-cover.on { display: flex; }
.cat-card .penalty-cover span { background: rgba(200,40,40,.9); color: #fff; padding: 8px 18px; border-radius: 30px; font-size: 13px; font-weight: 800; }
.cat-top { display: flex; align-items: center; gap: 14px; }
.cat-ava {
  width: 72px; height: 72px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 44px;
  box-shadow: inset 0 -6px 12px rgba(0,0,0,.06), 0 4px 10px rgba(0,0,0,.1);
}
.cat-card.yd .cat-ava { background: radial-gradient(circle at 50% 35%, #F4FAFF, #DCE7ED 72%, #C2D2DB); }
.cat-card.lh .cat-ava { background: radial-gradient(circle at 50% 35%, #FFF7E0, #FFE7A8 72%, #FFD46B); }
.cat-meta { flex: 1; min-width: 0; }
.cat-name { font-size: 17px; font-weight: 900; }
.cat-card.yd .cat-name { color: #546E7A; }
.cat-card.lh .cat-name { color: #E65100; }
.cat-desc { font-size: 12px; color: var(--ink2); margin: 3px 0 6px; }
.cat-tag { display: inline-block; font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 20px; }
.cat-card.yd .cat-tag { background: #ECEFF1; color: #455A64; }
.cat-card.lh .cat-tag { background: #FFF3CD; color: #E65100; }
.aff-sec { margin: 14px 0 12px; }
.aff-head { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 5px; }
.aff-label { color: var(--ink2); font-weight: 700; }
.aff-lv { font-weight: 800; }
.aff-bar { height: 10px; background: #EEE; border-radius: 5px; overflow: hidden; }
.aff-fill { height: 100%; border-radius: 5px; background: linear-gradient(90deg, #FFD1DC, #FF8FAB, #FF4081); transition: width .6s cubic-bezier(.34,1.56,.64,1); }
.aff-val { font-size: 11px; color: var(--ink2); text-align: right; margin-top: 3px; }
.rua-btn {
  width: 100%; padding: 14px; border: none; border-radius: 16px; font-size: 16px; font-weight: 900;
  color: #fff; cursor: pointer; transition: transform .15s, filter .2s; text-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.cat-card.yd .rua-btn { background: linear-gradient(135deg, #A6B7C0, #607D8B); box-shadow: 0 6px 16px rgba(96,125,139,.35); }
.cat-card.lh .rua-btn { background: linear-gradient(135deg, #FFD86B, #FFA000); box-shadow: 0 6px 16px rgba(217,138,0,.35); }
.rua-btn:active { transform: scale(.97); }
.rua-btn:disabled { opacity: .4; filter: grayscale(.4); cursor: not-allowed; transform: none; }

/* ===== 投喂 grid（在 sheet 内） ===== */
.feed-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 8px 0 12px; }
.feed-item {
  background: var(--card2); border: 2px solid transparent; border-radius: 14px;
  padding: 12px 8px; text-align: center; cursor: pointer; transition: transform .18s, border-color .18s, background .18s;
}
.feed-item:active { transform: scale(.96); }
.feed-item.sel { border-color: var(--pink); background: #FFF0F6; }
.fi-icon { font-size: 30px; display: block; margin-bottom: 4px; }
.fi-name { font-size: 13px; font-weight: 800; }
.fi-price { font-size: 12px; color: var(--pink-d); font-weight: 800; margin-top: 2px; }
.custom-row { display: flex; gap: 8px; margin-bottom: 14px; }
.custom-row input { flex: 1; padding: 12px 14px; border: none; border-radius: 14px; font-size: 15px; background: var(--card2); outline: none; }
.custom-row input:focus { box-shadow: 0 0 0 3px rgba(255,107,157,.22); }

/* ===== 底部抽屉 sheet ===== */
.sheet-mask {
  position: absolute; inset: 0; z-index: 300; background: rgba(0,0,0,.4);
  display: flex; align-items: flex-end; opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.sheet-mask.active { opacity: 1; pointer-events: auto; }
.sheet {
  display: none; width: 100%; max-height: 88%; overflow-y: auto;
  background: #FFF9FB; border-radius: 26px 26px 0 0; padding: 12px 20px 30px;
  box-shadow: 0 -10px 40px rgba(0,0,0,.2); transform: translateY(100%); transition: transform .34s cubic-bezier(.4,0,.2,1);
}
.sheet.active { display: block; transform: translateY(0); }
.sheet-handle { width: 40px; height: 5px; background: rgba(0,0,0,.15); border-radius: 3px; margin: 0 auto 14px; }
.sheet h3 { font-size: 19px; font-weight: 900; text-align: center; margin-bottom: 14px; color: var(--pink-d); }
.note { background: #FFF3E0; border: 1px dashed #FFCC80; border-radius: 12px; padding: 9px 12px; font-size: 12px; color: #A9682B; text-align: center; margin: 8px 0; }

/* ===== 结果 ===== */
.res-body { text-align: center; position: relative; overflow: hidden; padding-top: 6px; }
.res-cat { font-size: 90px; display: block; margin: 6px 0; filter: drop-shadow(0 6px 8px rgba(0,0,0,.14)); }
.res-cat.win { animation: happyCat .7s ease; }
.res-cat.lose { animation: angryCat .5s ease; }
@keyframes happyCat { 0%{transform:scale(.5) rotate(-10deg)} 50%{transform:scale(1.2) rotate(5deg)} 100%{transform:scale(1)} }
@keyframes angryCat { 0%,100%{transform:translateX(0)} 15%,45%,75%{transform:translateX(-8px)} 30%,60%,90%{transform:translateX(8px)} }
.res-msg { font-size: 16px; line-height: 1.6; margin: 6px 0; }
.res-amount { font-size: 32px; font-weight: 900; margin: 6px 0; }
.res-amount.win { color: var(--ok); }
.res-amount.lose { color: var(--bad); }
.res-affinity-up { font-size: 13px; color: var(--pink-d); font-weight: 700; margin: 4px 0; }
.res-bonus { font-size: 15px; font-weight: 800; color: #FF6F00; margin: 6px 0; animation: bonusPop .5s ease; }
@keyframes bonusPop { 0%{transform:scale(0);opacity:0} 60%{transform:scale(1.3)} 100%{transform:scale(1);opacity:1} }
.res-balance { font-size: 13px; color: var(--ink2); margin: 8px 0; }
.res-particles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.rp { position: absolute; font-size: 18px; animation: rpFall 1.4s ease-out forwards; }
@keyframes rpFall { 0%{opacity:1;transform:translateY(0) scale(1)} 100%{opacity:0;transform:translateY(180px) scale(.4) rotate(360deg)} }

/* ===== Rua 全屏动画 ===== */
.rua-anim {
  position: absolute; inset: 0; z-index: 400;
  background: radial-gradient(circle at 50% 45%, rgba(255,240,245,.97), rgba(255,220,235,.95));
  display: none; flex-direction: column; align-items: center; justify-content: center;
}
.rua-anim.active { display: flex; }
.rua-anim-cat { font-size: 110px; animation: ruaC .35s ease infinite alternate; }
@keyframes ruaC { from{transform:scale(1) rotate(-5deg)} to{transform:scale(1.14) rotate(5deg)} }
.rua-anim-text { font-size: 20px; font-weight: 900; color: var(--pink-d); margin-top: 12px; }

/* ===== 签到 ===== */
.signin-body { text-align: center; }
.signin-emoji { font-size: 60px; display: block; margin: 8px 0; animation: happyCat .7s ease; }
.signin-coins { font-size: 30px; font-weight: 900; color: #E65100; margin: 6px 0; animation: bonusPop .5s ease; }
.signin-bal { font-size: 13px; color: var(--ink2); margin: 6px 0; }
.signin-next { font-size: 12px; color: var(--ink2); margin-bottom: 6px; }

/* ===== 破产神像 ===== */
.deity-body { text-align: center; position: relative; overflow: hidden; }
.deity-title { font-size: 20px; font-weight: 900; color: var(--bad); margin-bottom: 8px; }
.deity-desc { font-size: 14px; color: var(--ink2); font-style: italic; line-height: 1.6; margin-bottom: 6px; }
.deity-balance { font-size: 28px; font-weight: 900; color: var(--bad); margin: 8px 0; }
.deity-statue { font-size: 90px; display: block; margin: 14px auto; cursor: pointer; user-select: none; animation: deityGlow 2s ease infinite; }
.deity-statue:active { transform: scale(.95); }
@keyframes deityGlow { 0%,100%{filter:brightness(1)} 50%{filter:brightness(1.3) drop-shadow(0 0 15px rgba(255,215,0,.6))} }
.deity-hint { font-size: 14px; color: var(--ink); line-height: 1.7; margin-bottom: 10px; }
.deity-cleaning { font-size: 84px; display: block; margin: 14px auto; animation: deityClean 1.5s ease forwards; }
@keyframes deityClean { 0%{transform:scale(1)} 60%{transform:scale(1.15) rotate(5deg);filter:brightness(1.6) drop-shadow(0 0 20px gold)} 100%{transform:scale(1.2);filter:brightness(2) drop-shadow(0 0 30px gold)} }
.deity-sparkle { position: absolute; font-size: 20px; pointer-events: none; animation: sparkleFloat 1s ease-out forwards; }
@keyframes sparkleFloat { 0%{opacity:1;transform:translateY(0) scale(1)} 100%{opacity:0;transform:translateY(-80px) scale(.3) rotate(180deg)} }
.deity-result-emoji { font-size: 66px; display: block; margin: 8px 0; }
.deity-result-text { font-size: 16px; font-weight: 800; color: var(--ok); margin: 5px 0; }
.deity-result-amount { font-size: 24px; font-weight: 900; color: #E65100; margin: 8px 0; }
.deity-result-penalty { font-size: 13px; color: var(--bad); line-height: 1.6; background: #FFF3F3; border-radius: 12px; padding: 10px; margin: 8px 0; }

/* ===== 商城 ===== */
.shop-hero { text-align: center; background: linear-gradient(135deg, #FFF0F6, #FFE9F0); border-radius: 20px; padding: 18px; margin-bottom: 14px; }
.shop-hero-title { font-size: 19px; font-weight: 900; color: var(--pink-d); }
.shop-hero-sub { font-size: 12px; color: var(--ink2); margin: 6px 0; line-height: 1.5; }
.shop-bal { font-size: 14px; font-weight: 700; color: #E65100; }
.gift-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.gift-card { background: #fff; border-radius: 20px; padding: 16px; text-align: center; box-shadow: 0 6px 16px rgba(0,0,0,.06); }
.gift-card.yd-gift { border-top: 4px solid #B0BEC5; }
.gift-card.lh-gift { border-top: 4px solid var(--gold); }
.gift-emoji { font-size: 46px; display: block; margin-bottom: 4px; }
.gift-name { font-size: 16px; font-weight: 900; margin-bottom: 3px; }
.gift-toy { font-size: 34px; display: block; margin: 6px 0; animation: bootBounce 2.2s ease infinite; }
.gift-toy-name { font-size: 14px; font-weight: 800; }
.gift-toy-desc { font-size: 12px; color: var(--ink2); margin: 6px 0 10px; line-height: 1.5; }
.gift-price { font-size: 13px; color: #E65100; font-weight: 700; margin-bottom: 8px; }
.card { background: #fff; border-radius: 18px; padding: 16px; box-shadow: 0 4px 14px rgba(0,0,0,.05); }
.card h3 { font-size: 15px; font-weight: 800; margin-bottom: 10px; }
.code-list { max-height: 240px; overflow-y: auto; }
.code-item { background: var(--card2); border-radius: 12px; padding: 10px; margin-bottom: 7px; }
.code-item-time { font-size: 11px; color: var(--ink2); }
.code-item-from { font-size: 11px; color: var(--pink-d); font-weight: 700; }
.code-item-code { font-family: 'Courier New', monospace; font-weight: 800; color: var(--pink-d); margin-top: 3px; word-break: break-all; font-size: 13px; }

/* ===== 送礼动画 ===== */
.gift-anim-body { text-align: center; min-height: 240px; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.ga-cat { font-size: 76px; display: block; margin-bottom: 8px; }
.ga-cat.receiving { animation: gaReceive 1s ease infinite; }
@keyframes gaReceive { 0%,100%{transform:scale(1)} 50%{transform:scale(1.1) rotate(5deg)} }
.ga-cat.happy { animation: happyCat .6s ease; }
.ga-fly { font-size: 40px; animation: gaFly 1.2s ease forwards; }
@keyframes gaFly { 0%{transform:translateY(60px) scale(1.5);opacity:1} 100%{transform:translateY(-20px) scale(.5);opacity:0} }
.ga-text { font-size: 15px; font-weight: 700; margin: 8px 0; line-height: 1.6; }
.ga-text-happy { color: var(--pink-d); }
.ga-code-box { background: var(--card2); border: 2px dashed var(--pink); border-radius: 14px; padding: 12px; margin: 10px 0; }
.ga-code-label { font-size: 12px; color: var(--ink2); margin-bottom: 5px; }
.ga-code-val { font-family: 'Courier New', monospace; font-size: 14px; font-weight: 800; color: var(--pink-d); word-break: break-all; }

/* ===== 记录 ===== */
.hist-item { display: flex; align-items: center; gap: 11px; padding: 12px; background: #fff; border-radius: 14px; margin-bottom: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.hist-emoji { font-size: 30px; }
.hist-info { flex: 1; min-width: 0; }
.hist-info b { font-size: 13px; }
.hist-info small { display: block; font-size: 11px; color: var(--ink2); margin-top: 2px; }
.hist-amt { font-weight: 900; font-size: 16px; }
.hist-amt.win { color: var(--ok); }
.hist-amt.lose { color: var(--bad); }
.empty-tip { text-align: center; color: var(--ink2); font-size: 13px; padding: 40px 20px; }

/* ===== 图鉴 ===== */
.dex-card { background: #fff; border-radius: 20px; padding: 18px; margin-bottom: 14px; box-shadow: 0 6px 16px rgba(0,0,0,.06); text-align: center; }
.dex-emoji { font-size: 60px; }
.dex-name { font-size: 17px; font-weight: 900; margin: 6px 0; }
.dex-lv-list { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; text-align: left; }
.dex-lv { display: flex; justify-content: space-between; font-size: 13px; padding: 8px 12px; border-radius: 10px; background: var(--card2); }
.dex-lv.cur { background: #FFF0F6; font-weight: 800; }

/* ===== Toast ===== */
.toast {
  position: absolute; top: 70px; left: 50%; transform: translateX(-50%) translateY(-120px);
  background: rgba(30,30,32,.92); color: #fff; padding: 12px 22px; border-radius: 30px;
  font-size: 14px; font-weight: 700; z-index: 999; white-space: nowrap; max-width: 86%;
  transition: transform .4s cubic-bezier(.34,1.56,.64,1); box-shadow: 0 8px 22px rgba(0,0,0,.3);
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ============================================================
   🆕 2.0 新功能样式：锁屏推送 / 喵信聊天 / 每日任务 / 图标角标
   ============================================================ */

/* 锁屏推送 */
.lock-notifs { width: 100%; max-width: 320px; display: flex; flex-direction: column; gap: 8px; margin: 8px auto; }
.lock-notif {
  background: rgba(255,255,255,.5); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.6); border-radius: 16px; padding: 10px 12px;
  display: flex; gap: 10px; align-items: flex-start; animation: notifIn .4s ease;
}
@keyframes notifIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.lock-notif-ico { width: 30px; height: 30px; border-radius: 8px; background: rgba(0,0,0,.06); display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; }
.lock-notif-body { flex: 1; min-width: 0; }
.lock-notif-title { font-size: 12px; font-weight: 800; color: var(--ink); }
.lock-notif-text { font-size: 12px; color: var(--ink); opacity: .8; line-height: 1.4; margin-top: 1px; }

/* 图标角标（复用 .app-badge 已有，补一个自动隐藏） */
.app-badge.hide { display: none; }

/* ===== 喵信：会话列表 ===== */
.chat-cell {
  display: flex; align-items: center; gap: 12px; padding: 13px 16px;
  background: #fff; cursor: pointer; border-bottom: 1px solid var(--line); position: relative;
}
.chat-cell:active { background: var(--card2); }
.chat-cell-ava {
  width: 50px; height: 50px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 30px;
}
.chat-cell.yd .chat-cell-ava { background: radial-gradient(circle at 50% 35%, #F4FAFF, #DCE7ED 72%, #C2D2DB); }
.chat-cell.lh .chat-cell-ava { background: radial-gradient(circle at 50% 35%, #FFF7E0, #FFE7A8 72%, #FFD46B); }
.chat-cell-info { flex: 1; min-width: 0; }
.chat-cell-name { font-size: 15px; font-weight: 700; }
.chat-cell-preview { font-size: 13px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.chat-cell-unread { min-width: 20px; height: 20px; padding: 0 6px; background: var(--bad); color: #fff; border-radius: 10px; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ===== 喵信：对话页 ===== */
#pageChat { background: linear-gradient(170deg, #F0F3F8, #EAECF2); }
.chat-scroll { flex: 1; overflow-y: auto; padding: calc(var(--status-h) + var(--nav-h) + 12px) 14px 14px; display: flex; flex-direction: column; gap: 12px; }
.chat-scroll::-webkit-scrollbar { width: 0; }
.msg { display: flex; align-items: flex-end; gap: 8px; max-width: 100%; animation: msgIn .3s ease; }
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.msg.me { flex-direction: row-reverse; }
.msg-ava { width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 20px; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.06); }
.msg-bubble { max-width: 72%; padding: 10px 14px; border-radius: 18px; font-size: 14px; line-height: 1.45; word-break: break-word; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.msg.cat .msg-bubble { background: #fff; color: var(--ink); border-bottom-left-radius: 5px; }
.msg.me .msg-bubble { background: linear-gradient(135deg, #95EC69, #7BD653); color: #14330a; border-bottom-right-radius: 5px; }
.chat-input-bar {
  flex-shrink: 0; display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: #F7F7F9; border-top: 1px solid var(--line);
}
.chat-input-bar input { flex: 1; border: none; border-radius: 18px; padding: 11px 16px; font-size: 15px; background: #fff; outline: none; }
.chat-input-bar input:focus { box-shadow: 0 0 0 3px rgba(255,107,157,.18); }
.chat-send { border: none; background: linear-gradient(135deg, var(--pink), var(--pink-d)); color: #fff; font-weight: 800; padding: 0 18px; border-radius: 18px; cursor: pointer; font-size: 14px; }
.chat-send:active { transform: scale(.95); }

/* ===== 每日任务 ===== */
.task-hero { background: linear-gradient(135deg, #FFF0F6, #FFE9F0); border-radius: 18px; padding: 14px; text-align: center; font-size: 13px; color: var(--pink-d); font-weight: 700; margin-bottom: 14px; }
.task-item { background: #fff; border-radius: 16px; padding: 14px; margin-bottom: 10px; box-shadow: 0 3px 10px rgba(0,0,0,.05); display: flex; align-items: center; gap: 12px; }
.task-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--card2); display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }
.task-mid { flex: 1; min-width: 0; }
.task-name { font-size: 14px; font-weight: 800; }
.task-reward { font-size: 12px; color: #E65100; font-weight: 700; margin-top: 1px; }
.task-bar { height: 7px; background: #EEE; border-radius: 4px; overflow: hidden; margin-top: 6px; }
.task-bar-fill { height: 100%; background: linear-gradient(90deg, #86E29A, #34B368); border-radius: 4px; transition: width .5s ease; }
.task-prog-txt { font-size: 11px; color: var(--ink2); margin-top: 3px; }
.task-btn { border: none; border-radius: 12px; padding: 9px 14px; font-size: 13px; font-weight: 800; cursor: pointer; flex-shrink: 0; }
.task-btn.claim { background: linear-gradient(135deg, #FFD86B, #FFA000); color: #fff; }
.task-btn.locked { background: var(--card2); color: var(--ink2); cursor: not-allowed; }
.task-btn.done { background: #E8F7EC; color: var(--ok); cursor: default; }
.task-btn:not(.locked):not(.done):active { transform: scale(.95); }

/* ============================================================
   🆕🆕 深度玩法样式：冒险 / 猫窝 / 挂机
   ============================================================ */

/* ---- 通用大按钮 ---- */
.big-btn { border: none; border-radius: 16px; padding: 15px; font-size: 16px; font-weight: 800; cursor: pointer; width: 100%; color: #fff; }
.big-btn:active { transform: scale(.97); }
.big-btn.go { background: linear-gradient(135deg, #7C6BFF, #A06BFF); box-shadow: 0 6px 18px rgba(124,107,255,.35); }
.big-btn.stop { background: linear-gradient(135deg, #FF8A5B, #FF6B6B); box-shadow: 0 6px 18px rgba(255,107,107,.3); }
.big-btn.gold { background: linear-gradient(135deg, #FFD86B, #FFA000); box-shadow: 0 6px 18px rgba(255,160,0,.3); }
.big-btn:disabled { opacity: .5; }

/* ---- ⛰️ 冒险 ---- */
.adv-setup { text-align: center; padding: 10px 0; }
.adv-hero { font-size: 60px; margin: 14px 0 6px; }
.adv-tip { font-size: 13px; color: var(--ink2); line-height: 1.6; margin-bottom: 16px; padding: 0 6px; }
.adv-cat-pick { display: flex; gap: 12px; margin: 14px 0; }
.adv-cat-opt { flex: 1; background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 14px 8px; cursor: pointer; text-align: center; transition: .2s; }
.adv-cat-opt.sel { border-color: var(--pink); background: var(--pink-l); transform: translateY(-2px); }
.adv-cat-opt .aco-emoji { font-size: 40px; }
.adv-cat-opt .aco-name { font-size: 13px; font-weight: 800; margin-top: 4px; }
.adv-stake-row { display: flex; align-items: center; gap: 10px; margin: 14px 0; }
.adv-stake-row input { flex: 1; border: 2px solid var(--line); border-radius: 12px; padding: 12px; font-size: 15px; text-align: center; outline: none; }
.adv-stake-row input:focus { border-color: var(--pink); }

/* 进行中 */
.adv-run-head { display: flex; justify-content: space-between; align-items: center; background: linear-gradient(135deg,#F3F0FF,#EDE7FF); border-radius: 16px; padding: 12px 16px; margin-bottom: 14px; }
.adv-stat { text-align: center; }
.adv-stat-label { font-size: 11px; color: var(--ink2); }
.adv-stat-val { font-size: 20px; font-weight: 900; color: var(--pink-d); }
.adv-stat-val.pot { color: #7C6BFF; }
.adv-step-badge { text-align: center; font-size: 12px; color: var(--ink2); margin-bottom: 10px; }
.adv-event-card { background: #fff; border-radius: 20px; padding: 22px 18px; text-align: center; box-shadow: 0 8px 24px rgba(0,0,0,.08); margin-bottom: 16px; animation: msgIn .35s ease; }
.adv-event-ico { font-size: 56px; margin-bottom: 8px; animation: floaty 2s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.adv-event-title { font-size: 18px; font-weight: 900; margin-bottom: 4px; }
.adv-event-desc { font-size: 13px; color: var(--ink2); line-height: 1.5; }
.adv-event-result { font-size: 16px; font-weight: 800; margin-top: 12px; padding: 8px; border-radius: 12px; }
.adv-event-result.good { background: #E8F7EC; color: var(--ok); }
.adv-event-result.bad { background: #FDE8E8; color: var(--bad); }
.adv-btns { display: flex; flex-direction: column; gap: 10px; }
.adv-choice-btns { display: flex; gap: 10px; }
.adv-choice-btns .big-btn { font-size: 14px; padding: 13px 8px; }
.adv-log { margin-top: 16px; }
.adv-log-title { font-size: 12px; color: var(--ink2); font-weight: 700; margin-bottom: 6px; }
.adv-log-item { font-size: 12px; padding: 6px 10px; background: #fff; border-radius: 10px; margin-bottom: 5px; display: flex; justify-content: space-between; }
.adv-end { text-align: center; padding: 20px 0; }
.adv-end-emoji { font-size: 66px; }
.adv-end-title { font-size: 22px; font-weight: 900; margin: 8px 0; }
.adv-end-amount { font-size: 30px; font-weight: 900; margin: 10px 0; }

/* ---- 🏠 猫窝 ---- */
.nest-preview { background: linear-gradient(170deg, #FFF4E6, #FFE9D6); border-radius: 20px; min-height: 150px; padding: 16px; position: relative; margin-bottom: 14px; box-shadow: inset 0 2px 8px rgba(0,0,0,.05); }
.nest-preview-title { font-size: 13px; font-weight: 800; color: #B5651D; }
.nest-items { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.nest-item-icon { font-size: 34px; filter: drop-shadow(0 3px 4px rgba(0,0,0,.15)); animation: floaty 3s ease-in-out infinite; }
.nest-empty { font-size: 13px; color: #B5651D; opacity: .7; text-align: center; padding: 24px 0; }
.nest-cat-sit { position: absolute; right: 16px; bottom: 12px; font-size: 44px; }
.nest-buff { background: #fff; border-radius: 14px; padding: 12px 14px; margin-bottom: 14px; font-size: 13px; box-shadow: 0 3px 10px rgba(0,0,0,.05); }
.nest-buff b { color: var(--pink-d); }
.nest-buff-row { display: flex; justify-content: space-between; padding: 3px 0; }
.nest-shop-title { font-size: 15px; font-weight: 800; margin-bottom: 10px; }
.furn-card { background: #fff; border-radius: 16px; padding: 14px; margin-bottom: 10px; display: flex; align-items: center; gap: 12px; box-shadow: 0 3px 10px rgba(0,0,0,.05); }
.furn-ico { width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg,#FFF4E6,#FFE0C2); display: flex; align-items: center; justify-content: center; font-size: 30px; flex-shrink: 0; }
.furn-mid { flex: 1; min-width: 0; }
.furn-name { font-size: 14px; font-weight: 800; }
.furn-desc { font-size: 12px; color: var(--ink2); margin-top: 2px; }
.furn-price { font-size: 13px; color: #E65100; font-weight: 800; margin-top: 3px; }
.furn-btn { border: none; border-radius: 12px; padding: 9px 14px; font-size: 13px; font-weight: 800; cursor: pointer; flex-shrink: 0; }
.furn-btn.buy { background: linear-gradient(135deg, #86E29A, #34B368); color: #fff; }
.furn-btn.owned { background: #E8F7EC; color: var(--ok); cursor: default; }
.furn-btn:not(.owned):active { transform: scale(.95); }

/* ---- 💤 挂机 ---- */
.idle-hero { text-align: center; padding: 16px 0; }
.idle-cat { font-size: 72px; animation: floaty 3s ease-in-out infinite; }
.idle-sub { font-size: 13px; color: var(--ink2); margin-top: 4px; }
.idle-panel { background: linear-gradient(135deg,#E6F7FF,#DDF0FF); border-radius: 20px; padding: 20px; text-align: center; margin: 14px 0; }
.idle-pending-label { font-size: 13px; color: var(--ink2); }
.idle-pending-val { font-size: 40px; font-weight: 900; color: #2196F3; margin: 6px 0; }
.idle-meta { font-size: 12px; color: var(--ink2); line-height: 1.7; }
.idle-meta b { color: #2196F3; }
.idle-full-tip { color: var(--bad); font-weight: 700; }
