/* ===================================================================
   韭菜矿场大亨 v3 · 游戏化设计系统（糖果色 + 深夜舞台 + Q 弹按钮）
   =================================================================== */
:root {
  --bg0: #1a1040; --bg1: #2b1a66; --bg2: #3d2590;
  --panel: #fff8ee; --panel2: #fff1dc; --ink: #2a1b4d; --ink2: #6b5a92; --line: #f0dfc6;
  --pink: #ff4fa3; --orange: #ff9f1c; --yellow: #ffd23f; --green: #2ee59d; --cyan: #3ad6ff; --blue: #4d7cff; --purple: #8b5cf6; --red: #ff4d5e;
  --up: #19c37d; --down: #ff4d5e;
  --r-s: 12px; --r-m: 18px; --r-l: 24px;
  --pop: cubic-bezier(.34, 1.56, .64, 1);
  --font: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Noto Sans CJK SC", "Source Han Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --stage-w: 480px;
  --nav-h: 74px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg0); color: var(--ink); font-family: var(--font); font-size: 15px; overscroll-behavior: none; }
body { font-variant-numeric: tabular-nums; }
button, input, select, textarea { font-family: inherit; }
.hidden { display: none !important; }

/* ---------- 背景星空 ---------- */
#sky { position: fixed; inset: 0; background: radial-gradient(1200px 700px at 50% -10%, #5b3bd1 0%, transparent 60%), radial-gradient(900px 600px at 100% 100%, #c2307e55, transparent 60%), linear-gradient(180deg, var(--bg1), var(--bg0)); z-index: 0; overflow: hidden; }
#sky i { position: absolute; inset: -50%; background-image: radial-gradient(2px 2px at 20px 30px, #fff9, transparent), radial-gradient(1.5px 1.5px at 90px 120px, #fff7, transparent), radial-gradient(2px 2px at 160px 60px, #ffd23f99, transparent), radial-gradient(1px 1px at 230px 180px, #fff8, transparent); background-size: 260px 220px; animation: drift 120s linear infinite; }
#sky i:nth-child(2) { background-size: 380px 300px; animation-duration: 200s; opacity: .7; }
#sky i:nth-child(3) { background-size: 520px 420px; animation-duration: 300s; opacity: .5; }
@keyframes drift { to { transform: translate(260px, 220px); } }

/* ---------- 布局：手机舞台 + 桌面侧栏 ---------- */
#layout { position: relative; z-index: 1; height: 100%; display: flex; justify-content: center; gap: 22px; }
#stage { position: relative; width: 100%; max-width: var(--stage-w); height: 100%; overflow: hidden; background: linear-gradient(180deg, #2f1d73 0%, #22145a 100%); }
.side { display: none; }
@media (min-width: 1100px) {
  #layout { padding: 20px; height: 100vh; align-items: stretch; }
  #stage { border-radius: 36px; box-shadow: 0 0 0 10px #120a30, 0 0 0 12px #ffffff22, 0 30px 80px #000a; height: calc(100vh - 40px); }
  .side { display: flex; flex-direction: column; gap: 14px; width: 320px; overflow: auto; padding: 4px; scrollbar-width: none; }
  .side::-webkit-scrollbar { display: none; }
}

/* ---------- 通用面板 / 文本 ---------- */
.panel { background: var(--panel); border-radius: var(--r-l); border: 3px solid #fff; box-shadow: 0 6px 0 #00000033, 0 12px 24px #0003; padding: 14px; position: relative; }
.panel.dark { background: linear-gradient(180deg, #3b2a82, #2c1d68); border-color: #ffffff22; color: #fff; box-shadow: 0 6px 0 #0005; }
.panel h3, .sec-title { margin: 0 0 10px; font-size: 18px; font-weight: 900; display: flex; align-items: center; gap: 8px; }
.sec-title { color: #fff; text-shadow: 0 2px 0 #0006; padding: 4px 4px 0; }
.sec-title small { font-weight: 600; opacity: .7; font-size: 12px; }
.muted { color: var(--ink2); font-size: 13px; }
.dark .muted, .sec-title .muted { color: #c9bbf5; }
.up { color: var(--up); } .down { color: var(--down); }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.col { display: flex; flex-direction: column; gap: 10px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.big-num { font-size: 30px; font-weight: 900; letter-spacing: -.5px; }
.logo-text { font-weight: 900; color: #fff; letter-spacing: 1px; text-shadow: 0 3px 0 #b8327a, 0 6px 0 #5b1f73, 0 8px 16px #0008; transform: rotate(-3deg); }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 800; background: #efe6ff; color: var(--purple); white-space: nowrap; }
.chip.hot { background: #ffe1e5; color: var(--red); } .chip.ok { background: #d6fbe9; color: #0f9a5f; } .chip.gold { background: #fff1c2; color: #a46f00; } .chip.blue { background: #dde8ff; color: var(--blue); }
.chip.glass { background: #ffffff1f; color: #fff; border: 1px solid #ffffff33; }
.pill-up { background: #d6fbe9; color: #0f9a5f; } .pill-down { background: #ffe1e5; color: var(--red); }

/* ---------- Q 弹按钮 ---------- */
.btn { --c1: #ff6fb8; --c2: var(--pink); --edge: #b8217a; appearance: none; border: 0; cursor: pointer; color: #fff; font-weight: 900; font-size: 16px; letter-spacing: .5px;
  min-height: 44px; padding: 10px 18px; border-radius: 16px; background: linear-gradient(180deg, var(--c1), var(--c2)); box-shadow: 0 5px 0 var(--edge), 0 8px 14px #0003; text-shadow: 0 2px 0 #0003;
  transition: transform .12s var(--pop), box-shadow .12s, filter .15s; display: inline-flex; align-items: center; justify-content: center; gap: 6px; position: relative; user-select: none; }
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(4px) scale(.98); box-shadow: 0 1px 0 var(--edge), 0 2px 6px #0003; }
.btn:disabled { --c1: #cfc6de; --c2: #b7accb; --edge: #8c80a3; cursor: not-allowed; filter: none; transform: none; text-shadow: none; }
.btn.green { --c1: #5cf2b5; --c2: #19c37d; --edge: #0b8a55; } .btn.orange { --c1: #ffc15c; --c2: #ff9f1c; --edge: #c26a00; }
.btn.yellow { --c1: #ffe680; --c2: #ffd23f; --edge: #c49a00; color: #5c3d00; text-shadow: 0 1px 0 #fff8; } .btn.blue { --c1: #7fa2ff; --c2: #4d7cff; --edge: #2747b8; }
.btn.purple { --c1: #ad8bff; --c2: #8b5cf6; --edge: #5a2fc0; } .btn.red { --c1: #ff7f8b; --c2: #ff4d5e; --edge: #b81d2d; } .btn.cyan { --c1: #7ee6ff; --c2: #22c4ef; --edge: #0b84a8; }
.btn.ghost { --c1: #fff; --c2: #f4ecff; --edge: #d6c6f5; color: var(--ink); text-shadow: none; }
.btn.small { min-height: 36px; padding: 6px 12px; font-size: 14px; border-radius: 12px; box-shadow: 0 4px 0 var(--edge); }
.btn.small:active { box-shadow: 0 1px 0 var(--edge); transform: translateY(3px); }
.btn.xl { min-height: 60px; font-size: 20px; border-radius: 20px; padding: 12px 22px; }
.btn.wide { width: 100%; }
.btn.breathe { animation: breathe 2.2s ease-in-out infinite; }
.btn .sub { display: block; font-size: 11px; font-weight: 700; opacity: .9; }
@keyframes breathe { 0%, 100% { box-shadow: 0 5px 0 var(--edge), 0 0 0 0 #ffd23f00; } 50% { box-shadow: 0 5px 0 var(--edge), 0 0 0 8px #ffd23f55; } }
.iconbtn { width: 44px; height: 44px; border-radius: 14px; border: 0; cursor: pointer; font-size: 22px; background: #ffffff1f; color: #fff; position: relative; box-shadow: inset 0 -3px 0 #0003; transition: transform .12s var(--pop); }
.iconbtn:active { transform: scale(.9); }

/* 红点 */
.dot { position: absolute; top: 4px; right: 8px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--red); color: #fff; font-size: 11px; font-weight: 900; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px #fff; font-style: normal; display: none; }
.dot.on { display: block; animation: dotpop .4s var(--pop); }
.dot.plain { min-width: 12px; height: 12px; padding: 0; }
@keyframes dotpop { from { transform: scale(0); } }

/* 输入 */
.inp { width: 100%; min-height: 46px; border-radius: 14px; border: 3px solid var(--line); background: #fff; padding: 8px 12px; font-size: 16px; font-weight: 700; color: var(--ink); outline: none; }
.inp:focus { border-color: var(--purple); box-shadow: 0 0 0 4px #8b5cf622; }
.seg { display: flex; background: #00000033; border-radius: 16px; padding: 4px; gap: 4px; }
.seg button { flex: 1; min-height: 40px; border: 0; border-radius: 12px; background: transparent; color: #d9ceff; font-weight: 900; font-size: 14px; cursor: pointer; transition: all .2s var(--pop); white-space: nowrap; }
.seg button.on { background: linear-gradient(180deg, #fff, #f2eaff); color: var(--ink); box-shadow: 0 3px 0 #0003; }
.seg.light { background: #efe6ff; } .seg.light button { color: var(--ink2); }
.presets { display: flex; gap: 6px; } .presets button { flex: 1; min-height: 40px; border-radius: 12px; border: 2px solid var(--line); background: #fff; font-weight: 900; color: var(--ink); cursor: pointer; }
.presets button:active { transform: scale(.94); } .presets button.on { border-color: var(--purple); background: #f3edff; color: var(--purple); }

/* 进度条（带条纹流动） */
.bar { height: 14px; border-radius: 99px; background: #00000018; overflow: hidden; position: relative; box-shadow: inset 0 2px 3px #0002; }
.bar > i { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: linear-gradient(90deg, var(--green), #8ff7c8); transition: width .5s var(--pop); }
.bar > i::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, #ffffff40 0 8px, transparent 8px 16px); animation: stripes 1s linear infinite; border-radius: inherit; }
.bar.gold > i { background: linear-gradient(90deg, var(--orange), var(--yellow)); } .bar.pink > i { background: linear-gradient(90deg, var(--pink), #ff9ad0); } .bar.red > i { background: linear-gradient(90deg, var(--red), var(--orange)); } .bar.blue > i { background: linear-gradient(90deg, var(--blue), var(--cyan)); }
.bar.thin { height: 8px; }
.bar .lbl { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 900; color: #fff; text-shadow: 0 1px 2px #0008; }
@keyframes stripes { to { background-position: 22px 0; } }

/* ---------- HUD ---------- */
#game { position: absolute; inset: 0; display: flex; flex-direction: column; }
#hud { flex: none; display: flex; align-items: center; gap: 8px; padding: calc(10px + env(safe-area-inset-top)) 10px 6px; color: #fff; z-index: 5; }
.avatar { width: 54px; height: 54px; border-radius: 50%; position: relative; flex: none; cursor: pointer; display: grid; place-items: center; font-size: 28px; background: conic-gradient(var(--yellow) calc(var(--p) * 1%), #ffffff22 0); transition: transform .15s var(--pop); }
.avatar:active { transform: scale(.92); }
.avatar::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #8a6cff, #4b2bb8); box-shadow: inset 0 -3px 0 #0003; }
.avatar span { position: relative; }
.avatar .lv { position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%); background: linear-gradient(180deg, var(--yellow), var(--orange)); color: #5c3d00; font-size: 11px; font-weight: 900; padding: 0 7px; border-radius: 99px; box-shadow: 0 2px 0 #c26a00; white-space: nowrap; }
.hud-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.hud-name { font-size: 13px; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 0 #0006; }
.hud-pills { display: flex; gap: 6px; }
.cur { display: flex; align-items: center; gap: 4px; background: #00000040; border: 2px solid #ffffff26; border-radius: 99px; padding: 2px 10px 2px 3px; font-weight: 900; font-size: 15px; min-width: 0; }
.cur i { font-style: normal; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; background: linear-gradient(180deg, #ffe680, #ffb21c); box-shadow: inset 0 -2px 0 #c26a00; flex: none; }
.cur.hash i { background: linear-gradient(180deg, #7ee6ff, #22a4ef); box-shadow: inset 0 -2px 0 #0b6aa8; }
.cur b { white-space: nowrap; }
.hud-pills .cur { flex: none; }
.cur.bump { animation: bump .35s var(--pop); }
@keyframes bump { 40% { transform: scale(1.12); } }
.hud-btns { display: flex; gap: 6px; }
#chips { flex: none; display: flex; gap: 6px; overflow-x: auto; padding: 0 10px 6px; scrollbar-width: none; }
#chips::-webkit-scrollbar { display: none; }
#chips:empty { display: none; }

/* ---------- 屏幕区 & 底部导航 ---------- */
#screens { flex: 1; min-height: 0; position: relative; }
.screen { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; padding: 4px 12px calc(var(--nav-h) + 24px); display: none; scrollbar-width: none; }
.screen::-webkit-scrollbar { display: none; }
.screen.on { display: block; animation: screenin .28s var(--pop); }
.screen > * + * { margin-top: 14px; }
@keyframes screenin { from { opacity: 0; transform: translateY(14px); } }
#nav { position: absolute; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); height: var(--nav-h); display: flex; gap: 4px; padding: 6px; border-radius: 26px; z-index: 10;
  background: linear-gradient(180deg, #fffdf8, #f3e7d3); border: 3px solid #fff; box-shadow: 0 6px 0 #0004, 0 12px 30px #0006; }
#nav button { flex: 1; border: 0; background: transparent; border-radius: 18px; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; position: relative; color: var(--ink2); font-weight: 900; font-size: 12px; transition: all .2s var(--pop); }
#nav button i { font-style: normal; font-size: 26px; line-height: 1.1; transition: transform .25s var(--pop); filter: grayscale(.4); }
#nav button.on { background: linear-gradient(180deg, #ffd96b, #ffb02e); color: #5c3d00; box-shadow: 0 4px 0 #c27a00; transform: translateY(-8px); }
#nav button.on i { transform: scale(1.25) translateY(-2px); filter: none; }
#nav .dot { top: 2px; right: 10px; }

/* ---------- Sheet（全屏子页 / 底部抽屉） ---------- */
#sheets { position: absolute; inset: 0; pointer-events: none; z-index: 30; }
.sheet-wrap { position: absolute; inset: 0; pointer-events: auto; background: #10072ccc; backdrop-filter: blur(3px); animation: fadein .2s; display: flex; flex-direction: column; justify-content: flex-end; }
.sheet { background: linear-gradient(180deg, #34217a, #22145a); border-radius: 28px 28px 0 0; max-height: 94%; display: flex; flex-direction: column; animation: sheetup .32s var(--pop); box-shadow: 0 -10px 40px #0008; border-top: 3px solid #ffffff22; }
.sheet.full { height: 100%; max-height: 100%; border-radius: 0; }
.sheet-head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 10px; color: #fff; }
.sheet-head h2 { flex: 1; margin: 0; font-size: 21px; font-weight: 900; text-shadow: 0 2px 0 #0006; }
.sheet-body { overflow-y: auto; padding: 4px 12px 30px; scrollbar-width: none; }
.sheet-body > * + * { margin-top: 12px; }
.sheet-hero { flex: none; margin: 0 12px 6px; border-radius: 22px; padding: 16px; color: #fff; position: relative; overflow: hidden; box-shadow: inset 0 -4px 0 #0003; }
.sheet-hero .art { position: absolute; right: -6px; bottom: -14px; font-size: 92px; opacity: .95; transform: rotate(-8deg); filter: drop-shadow(0 6px 0 #0003); }
.sheet-hero h3 { margin: 0; font-size: 24px; font-weight: 900; text-shadow: 0 2px 0 #0005; }
.sheet-hero p { margin: 4px 0 0; max-width: 70%; font-size: 13px; opacity: .95; }
@keyframes sheetup { from { transform: translateY(60%); opacity: .4; } }
@keyframes fadein { from { opacity: 0; } }
.close { width: 44px; height: 44px; border-radius: 14px; border: 0; background: #ffffff1f; color: #fff; font-size: 22px; cursor: pointer; }

/* 弹窗 / 确认 */
.modal-wrap { position: absolute; inset: 0; z-index: 40; background: #10072cdd; display: grid; place-items: center; padding: 18px; animation: fadein .2s; pointer-events: auto; }
.modal { width: 100%; max-width: 380px; background: var(--panel); border-radius: 28px; border: 4px solid #fff; padding: 22px 18px 18px; text-align: center; box-shadow: 0 8px 0 #0005, 0 30px 60px #000a; animation: pop .35s var(--pop); position: relative; }
.modal .ribbon { position: absolute; top: -22px; left: 50%; transform: translateX(-50%); background: linear-gradient(180deg, var(--pink), #d62f84); color: #fff; font-weight: 900; padding: 8px 26px; border-radius: 14px; box-shadow: 0 4px 0 #8f1a57; white-space: nowrap; font-size: 18px; }
.modal .art { font-size: 74px; line-height: 1.1; margin: 6px 0; }
.modal h2 { margin: 6px 0; font-size: 22px; font-weight: 900; }
.modal p { color: var(--ink2); margin: 6px 0 14px; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }

/* Toast */
#toasts { position: absolute; top: 74px; left: 12px; right: 12px; z-index: 50; display: flex; flex-direction: column; gap: 6px; align-items: center; pointer-events: none; }
.toast { pointer-events: auto; max-width: 100%; background: #fff; color: var(--ink); border-radius: 18px; padding: 10px 16px; font-weight: 800; font-size: 14px; box-shadow: 0 5px 0 #0003, 0 10px 20px #0004; border: 3px solid #fff; animation: toastin .35s var(--pop); display: flex; gap: 8px; align-items: center; }
.toast.ok { background: linear-gradient(180deg, #e3fff2, #c4f7df); border-color: #9ff0c9; }
.toast.err { background: linear-gradient(180deg, #fff0f2, #ffd6dc); border-color: #ffb3bd; }
.toast.gold { background: linear-gradient(180deg, #fff7d1, #ffe58a); border-color: #ffd23f; }
.toast.out { animation: toastout .3s forwards; }
@keyframes toastin { from { transform: translateY(-30px) scale(.8); opacity: 0; } }
@keyframes toastout { to { transform: translateY(-20px); opacity: 0; } }

/* 特效层 */
#fx { position: absolute; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; }
.pt { position: absolute; left: 0; top: 0; font-size: 24px; will-change: transform, opacity; }
.numpop { position: absolute; font-weight: 900; font-size: 20px; color: #fff; text-shadow: 0 2px 0 #0008, 0 0 10px #ffd23f; white-space: nowrap; will-change: transform, opacity; }
.numpop.big { font-size: 30px; color: var(--yellow); }
.flash { position: absolute; inset: 0; animation: flash .6s forwards; }
@keyframes flash { from { opacity: .9; } to { opacity: 0; } }
.shake { animation: shake .45s; }
@keyframes shake { 20% { transform: translate(-7px, 3px) rotate(-.6deg); } 40% { transform: translate(7px, -3px) rotate(.6deg); } 60% { transform: translate(-5px, 2px); } 80% { transform: translate(4px, -1px); } }

/* ---------- 主场景 ---------- */
.scene { position: relative; height: 330px; border-radius: 28px; overflow: hidden; border: 4px solid #ffffff; box-shadow: 0 7px 0 #0005, 0 18px 40px #0006; cursor: pointer; user-select: none; touch-action: manipulation; isolation: isolate; }
.scene .bgl { position: absolute; inset: 0; }
.scene .wall { position: absolute; inset: 0 0 34% 0; }
.scene .floor { position: absolute; inset: 66% 0 0 0; }
.scene .prop { position: absolute; line-height: 1; filter: drop-shadow(0 6px 0 #0003); pointer-events: none; }
.scene .prop.float { animation: bob 3.4s ease-in-out infinite; }
.scene .prop.spin { animation: spin 18s linear infinite; }
.scene .prop.twinkle { animation: twinkle 2.4s ease-in-out infinite; }
.scene .title { position: absolute; left: 12px; top: 10px; z-index: 4; color: #fff; pointer-events: none; }
.scene .title b { display: block; font-size: 19px; font-weight: 900; text-shadow: 0 2px 0 #0007, 0 0 12px #0005; }
.scene .title small { font-size: 11px; font-weight: 800; text-shadow: 0 1px 0 #0008; background: #0005; padding: 1px 8px; border-radius: 99px; display: inline-block; margin-top: 2px; }
.rigs { position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); display: flex; flex-wrap: wrap-reverse; justify-content: center; width: 300px; align-content: flex-start; gap: 6px 10px; z-index: 3; }
.rig-slot { width: 64px; height: 60px; position: relative; display: grid; place-items: end center; }
.rig-slot::before { content: ""; position: absolute; bottom: 0; left: 6px; right: 6px; height: 12px; border-radius: 50%; background: #0004; filter: blur(2px); }
.rig-slot .r { font-size: 40px; position: relative; animation: hum 1.6s ease-in-out infinite; transform-origin: 50% 100%; }
.rig-slot .led { position: absolute; top: 6px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: #3dff9e; box-shadow: 0 0 8px #3dff9e; animation: blink 1.1s steps(2) infinite; }
.rig-slot .stars { position: absolute; bottom: -4px; font-size: 10px; letter-spacing: -2px; text-shadow: 0 1px 0 #0008; }
.rig-slot.empty .r { opacity: .25; filter: grayscale(1); animation: none; }
.rig-slot.add { cursor: pointer; } .rig-slot.add .r { opacity: 1; filter: none; font-size: 26px; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 16px; border: 3px dashed #fff; background: #ffffff40; animation: bob 2.4s ease-in-out infinite; } .rig-slot.add::before { display: none; }
.rig-slot.empty .led { display: none; }
.rig-slot.smoke .r { animation: rattle .25s linear infinite; }
.rig-slot.smoke::after { content: "💨"; position: absolute; top: -18px; left: 22px; font-size: 26px; animation: puff 1.2s ease-out infinite; }
.rig-slot .count { position: absolute; top: -2px; left: 0; background: #000a; color: #fff; font-size: 11px; font-weight: 900; padding: 0 5px; border-radius: 8px; }
.scene-gauge { position: absolute; right: 12px; top: 54px; width: 22px; height: 150px; border-radius: 12px; background: #0006; border: 3px solid #fff; z-index: 4; overflow: hidden; pointer-events: none; }
.scene-gauge i { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(0deg, var(--yellow), var(--orange), var(--red)); transition: height .2s; }
.scene-gauge::after { content: "🌡️"; position: absolute; top: -2px; left: -2px; font-size: 14px; }
.scene .combo { position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%); font-weight: 900; color: #fff; z-index: 6; pointer-events: none; text-shadow: 0 3px 0 #b8217a, 0 0 18px #ff4fa3; opacity: 0; transition: opacity .2s; white-space: nowrap; }
.scene .combo.on { opacity: 1; }
.scene .rage { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); z-index: 7; }
.scene .hint { position: absolute; left: 50%; bottom: 5px; transform: translateX(-50%); font-size: 12px; font-weight: 800; color: #fff; background: #0006; padding: 2px 10px; border-radius: 99px; z-index: 4; pointer-events: none; white-space: nowrap; }
.scene.raging { box-shadow: 0 7px 0 #0005, 0 0 0 4px var(--red), 0 0 40px var(--orange); }
.scene.raging .rig-slot .r { animation-duration: .35s; }
.scene .coinfly { position: absolute; font-size: 22px; z-index: 5; pointer-events: none; }
.fabs { position: absolute; left: 10px; top: 54px; display: flex; flex-direction: column; gap: 8px; z-index: 5; }
.fab { width: 50px; height: 50px; border-radius: 16px; border: 3px solid #fff; cursor: pointer; font-size: 24px; display: grid; place-items: center; position: relative; background: linear-gradient(180deg, #ffe680, #ffb21c); box-shadow: 0 4px 0 #c26a00; transition: transform .15s var(--pop); }
.fab:active { transform: scale(.9) translateY(2px); }
.fab.pink { background: linear-gradient(180deg, #ff8fc8, #ff4fa3); box-shadow: 0 4px 0 #b8217a; }
.fab.green { background: linear-gradient(180deg, #8ff7c8, #19c37d); box-shadow: 0 4px 0 #0b8a55; }
.fab.wiggle { animation: wiggle 1.4s ease-in-out infinite; }
.fab .dot { top: -6px; right: -6px; }
.fab small { position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); font-size: 10px; font-weight: 900; background: #fff; color: var(--ink); border-radius: 6px; padding: 0 4px; white-space: nowrap; }
@keyframes hum { 0%, 100% { transform: translateY(0) scale(1, 1); } 50% { transform: translateY(-2px) scale(1.03, .97); } }
@keyframes blink { 50% { opacity: .2; } }
@keyframes rattle { 25% { transform: rotate(-6deg); } 75% { transform: rotate(6deg); } }
@keyframes puff { from { transform: translateY(6px) scale(.6); opacity: 1; } to { transform: translateY(-22px) scale(1.4); opacity: 0; } }
@keyframes bob { 50% { transform: translateY(-10px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes twinkle { 50% { opacity: .35; transform: scale(.85); } }
@keyframes wiggle { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-12deg); } 90% { transform: rotate(12deg); } 95% { transform: rotate(-6deg); } }
.squash { animation: squash .28s var(--pop); }
@keyframes squash { 30% { transform: scale(1.04, .94); } 60% { transform: scale(.98, 1.03); } }

/* ---------- 首页模块 ---------- */
.earn { display: flex; align-items: center; gap: 12px; }
.earn .ico { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; font-size: 30px; background: linear-gradient(180deg, #ffe680, #ffb21c); box-shadow: inset 0 -4px 0 #c26a00; flex: none; }
.earn .v { font-size: 26px; font-weight: 900; line-height: 1.1; }
.upgrade { background: linear-gradient(135deg, #ff7cc0, #8b5cf6); color: #fff; border-color: #ffffff66; }
.upgrade .nx { font-size: 46px; filter: drop-shadow(0 4px 0 #0003); }
.coin-strip { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: none; scroll-snap-type: x mandatory; }
.coin-strip::-webkit-scrollbar { display: none; }
.cchar { flex: none; width: 96px; scroll-snap-align: start; border-radius: 20px; padding: 10px 6px 8px; text-align: center; background: var(--panel); border: 3px solid #fff; box-shadow: 0 5px 0 #0003; cursor: pointer; position: relative; transition: transform .15s var(--pop); }
.cchar:active { transform: scale(.94); }
.cchar .face { font-size: 38px; line-height: 1; display: inline-block; }
.cchar.on { background: linear-gradient(180deg, #e3fff2, #bff5dc); border-color: var(--green); }
.cchar.on .face { animation: hum 1.2s ease-in-out infinite; }
.cchar .nm { font-weight: 900; font-size: 13px; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cchar .mini { font-size: 11px; font-weight: 800; color: var(--ink2); }
.cchar .tag { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); font-size: 10px; padding: 1px 8px; border-radius: 99px; background: var(--green); color: #fff; font-weight: 900; white-space: nowrap; }
.cchar.sel { border-color: var(--purple); box-shadow: 0 5px 0 #5a2fc0, 0 0 0 3px #8b5cf655; transform: translateY(-3px); }
.cchar .mood { position: absolute; top: 4px; right: 6px; font-size: 14px; }
.vault-row { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 2px dashed var(--line); }
.vault-row:last-child { border-bottom: 0; }
.vault-row .e { font-size: 28px; width: 40px; text-align: center; }

/* ---------- 商店卡 ---------- */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.card { --rar: #8fd16a; --rar2: #c7f2a8; border-radius: 22px; background: var(--panel); border: 4px solid var(--rar); box-shadow: 0 6px 0 #0004; padding: 10px; display: flex; flex-direction: column; gap: 6px; position: relative; overflow: hidden; }
.card.r1 { --rar: #4d9cff; --rar2: #bcd8ff; } .card.r2 { --rar: #a66bff; --rar2: #dcc7ff; } .card.r3 { --rar: #ff9f1c; --rar2: #ffd9a1; }
.card.r4 { --rar: #ff4fa3; --rar2: #ffc2df; border-image: linear-gradient(135deg, #ff4fa3, #ffd23f, #2ee59d, #3ad6ff, #8b5cf6) 1; border-radius: 22px; }
.card .art { height: 92px; border-radius: 16px; display: grid; place-items: center; font-size: 56px; background: radial-gradient(circle at 50% 55%, #fff 0%, var(--rar2) 45%, var(--rar) 100%); position: relative; }
.card .art .glow { position: absolute; inset: 0; background: conic-gradient(from 0deg, transparent, #ffffff88, transparent 30%); animation: spin 6s linear infinite; opacity: .5; border-radius: inherit; mix-blend-mode: overlay; }
.card .art span { position: relative; filter: drop-shadow(0 5px 0 #0003); }
.card .rar { position: absolute; top: 6px; left: 6px; font-size: 10px; font-weight: 900; color: #fff; background: var(--rar); padding: 1px 8px; border-radius: 99px; z-index: 1; }
.card .own { position: absolute; top: 6px; right: 6px; font-size: 11px; font-weight: 900; color: #fff; background: #0008; padding: 1px 8px; border-radius: 99px; z-index: 1; }
.card .nm { font-weight: 900; font-size: 14px; line-height: 1.2; min-height: 34px; }
.card .stat { display: flex; justify-content: space-between; font-size: 12px; font-weight: 800; color: var(--ink2); }
.card .desc { font-size: 11px; color: var(--ink2); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .stars { color: var(--orange); font-size: 13px; letter-spacing: 1px; }
.card.locked { filter: grayscale(.85); opacity: .75; }
.card.locked::after { content: "🔒"; position: absolute; top: 34px; left: 50%; transform: translateX(-50%); font-size: 34px; }
.card .trait { font-size: 11px; font-weight: 900; color: #a46f00; background: #fff1c2; border-radius: 8px; padding: 2px 6px; align-self: flex-start; }

/* ---------- 交易 ---------- */
.price-hero { display: flex; align-items: center; gap: 12px; }
.price-hero .face { font-size: 58px; animation: bob 3s ease-in-out infinite; filter: drop-shadow(0 6px 0 #0003); }
.price-hero .p { font-size: 32px; font-weight: 900; line-height: 1; }
.chart-box { background: #fff; border-radius: 18px; padding: 6px; border: 2px solid var(--line); }
.chart-box canvas { width: 100%; display: block; }
.side-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.side-toggle button { min-height: 52px; border-radius: 16px; border: 3px solid var(--line); background: #fff; font-weight: 900; font-size: 17px; cursor: pointer; color: var(--ink2); transition: all .2s var(--pop); }
.side-toggle button.buy.on { background: linear-gradient(180deg, #5cf2b5, #19c37d); color: #fff; border-color: #0b8a55; box-shadow: 0 4px 0 #0b8a55; }
.side-toggle button.sell.on { background: linear-gradient(180deg, #ff7f8b, #ff4d5e); color: #fff; border-color: #b81d2d; box-shadow: 0 4px 0 #b81d2d; }
.preview { background: #f6efff; border-radius: 16px; padding: 10px 12px; font-weight: 800; font-size: 14px; line-height: 1.5; border: 2px dashed #d8c6ff; }
.preview .warn { color: var(--red); }
.mood-meter { height: 12px; border-radius: 99px; background: linear-gradient(90deg, #ff4d5e, #ffd23f, #2ee59d); position: relative; }
.mood-meter b { position: absolute; top: 50%; transform: translate(-50%, -50%); font-size: 22px; transition: left .4s var(--pop); }
.lev-slider { -webkit-appearance: none; appearance: none; width: 100%; height: 16px; border-radius: 99px; background: linear-gradient(90deg, #2ee59d, #ffd23f 45%, #ff4d5e); outline: none; }
.lev-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 4px solid var(--purple); box-shadow: 0 3px 0 #0004; cursor: pointer; }
.lev-slider::-moz-range-thumb { width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 4px solid var(--purple); }
.pos-card { border-radius: 18px; padding: 12px; background: #fff; border: 3px solid var(--line); }
.pos-card.win { border-color: #9ff0c9; background: #f1fff8; } .pos-card.lose { border-color: #ffc2ca; background: #fff5f6; }
.tomb { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 14px; background: #ffffff10; }
.tomb .e { font-size: 30px; }

/* ---------- 乐园 ---------- */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { position: relative; min-height: 150px; border-radius: 24px; padding: 14px; color: #fff; overflow: hidden; cursor: pointer; border: 3px solid #ffffff55; box-shadow: 0 6px 0 #0005, inset 0 -5px 0 #0002; transition: transform .15s var(--pop); text-align: left; }
.tile:active { transform: scale(.96); }
.tile.wide { grid-column: span 2; min-height: 120px; }
.tile h4 { margin: 0; font-size: 19px; font-weight: 900; text-shadow: 0 2px 0 #0004; position: relative; z-index: 1; }
.tile p { margin: 4px 0 0; font-size: 12px; font-weight: 700; opacity: .95; max-width: 75%; position: relative; z-index: 1; }
.tile .art { position: absolute; right: -8px; bottom: -12px; font-size: 76px; transform: rotate(-10deg); filter: drop-shadow(0 6px 0 #0003); transition: transform .3s var(--pop); }
.tile:hover .art { transform: rotate(0) scale(1.08); }
.tile .badge { position: absolute; left: 12px; bottom: 12px; z-index: 1; }
.tile.locked { filter: grayscale(.7) brightness(.8); }
.tile.locked .badge::before { content: "🔒 "; }
.g1 { background: linear-gradient(135deg, #ff6fb8, #ff9f1c); } .g2 { background: linear-gradient(135deg, #4d7cff, #3ad6ff); } .g3 { background: linear-gradient(135deg, #ff4d5e, #8b5cf6); }
.g4 { background: linear-gradient(135deg, #19c37d, #3ad6ff); } .g5 { background: linear-gradient(135deg, #8b5cf6, #ff4fa3); } .g6 { background: linear-gradient(135deg, #ff9f1c, #ffd23f); color: #5c3d00; }
.g7 { background: linear-gradient(135deg, #2b1a66, #8b5cf6); } .g8 { background: linear-gradient(135deg, #ff4d5e, #ffd23f); }
.meme { border-radius: 20px; background: #fff; border: 3px solid var(--line); padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.meme .e { font-size: 44px; line-height: 1; }
.meme.rugged, .meme.dead { filter: grayscale(.8); opacity: .7; }
.meme.mainnet { border-color: var(--yellow); box-shadow: 0 0 0 3px #ffd23f55; }
.pick { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.pick button { min-height: 46px; font-size: 26px; border-radius: 12px; border: 3px solid var(--line); background: #fff; cursor: pointer; }
.pick button.on { border-color: var(--purple); background: #f3edff; transform: scale(1.06); }
.scheme { border-radius: 18px; padding: 12px; border: 3px solid var(--line); background: #fff; cursor: pointer; display: flex; gap: 10px; align-items: flex-start; }
.scheme.on { border-color: var(--pink); background: #fff0f8; box-shadow: 0 4px 0 #ff4fa355; }
.scheme .e { font-size: 34px; }
.avatars { display: flex; gap: 10px; overflow-x: auto; padding: 6px 2px 10px; scrollbar-width: none; }
.avatars::-webkit-scrollbar { display: none; }
.av { flex: none; width: 78px; text-align: center; cursor: pointer; }
.av .c { width: 60px; height: 60px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; font-size: 30px; background: radial-gradient(circle at 35% 30%, #fff, #e9ddff); border: 3px solid #fff; box-shadow: 0 4px 0 #0003; transition: transform .15s var(--pop); }
.av.on .c { border-color: var(--red); box-shadow: 0 0 0 4px #ff4d5e66, 0 4px 0 #0003; transform: scale(1.08); }
.av .n { font-size: 12px; font-weight: 900; color: #fff; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.av .w { font-size: 10px; color: #c9bbf5; }
.weapon { border-radius: 18px; background: #fff; border: 3px solid var(--line); padding: 10px; display: flex; flex-direction: column; gap: 6px; text-align: center; }
.weapon .e { font-size: 40px; }
.weapon.locked { filter: grayscale(1); opacity: .6; }
.ring { width: 140px; height: 140px; border-radius: 50%; margin: 0 auto; display: grid; place-items: center; background: conic-gradient(var(--pink) calc(var(--p) * 1%), #ffffff22 0); position: relative; }
.ring::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: #2b1a66; }
.ring b { position: relative; font-size: 44px; color: #fff; font-weight: 900; }
.rocket-screen { position: relative; height: 230px; border-radius: 22px; overflow: hidden; background: linear-gradient(180deg, #0b0630, #3d2590); border: 3px solid #ffffff33; }
.rocket-screen .rk { position: absolute; left: 50%; bottom: 20px; font-size: 54px; transform: translateX(-50%) rotate(-45deg); transition: bottom .1s linear; }
.rocket-screen .m { position: absolute; top: 18px; left: 0; right: 0; text-align: center; font-size: 46px; font-weight: 900; color: #2ee59d; text-shadow: 0 3px 0 #0008; }
.rocket-screen.crash { animation: shake .5s; background: linear-gradient(180deg, #4a0b1f, #8f1a3a); }
.rocket-screen .stars-bg { position: absolute; inset: 0; background-image: radial-gradient(2px 2px at 30px 40px, #fff8, transparent), radial-gradient(2px 2px at 120px 90px, #fff6, transparent), radial-gradient(1px 1px at 200px 30px, #fff9, transparent); background-size: 240px 120px; animation: fall-bg 1s linear infinite; }
@keyframes fall-bg { to { background-position: 0 120px; } }
.box3d { font-size: 70px; display: inline-block; animation: wiggle 2s ease-in-out infinite; filter: drop-shadow(0 8px 0 #0004); }

/* ---------- 情报（手机社交） ---------- */
.feed-item { display: flex; gap: 10px; padding: 12px; background: #fff; border-radius: 18px; border: 2px solid var(--line); }
.feed-item .ava { width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 22px; background: linear-gradient(180deg, #efe6ff, #d9c8ff); }
.feed-item .who { font-size: 12px; font-weight: 900; color: var(--ink2); }
.feed-item .txt { font-weight: 800; margin: 2px 0 6px; line-height: 1.4; }
.feed-item.t1 { border-left: 6px solid var(--up); } .feed-item.t-1 { border-left: 6px solid var(--down); }
.chat-list .grp { display: flex; gap: 10px; align-items: center; padding: 10px; background: #fff; border-radius: 18px; border: 2px solid var(--line); cursor: pointer; }
.chat-list .grp + .grp { margin-top: 8px; }
.chat-list .grp .ava { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; font-size: 28px; background: linear-gradient(180deg, #fff1c2, #ffd23f); flex: none; }
.bubbles { display: flex; flex-direction: column; gap: 8px; }
.bub { max-width: 84%; padding: 9px 12px; border-radius: 18px 18px 18px 6px; background: #fff; font-weight: 700; line-height: 1.4; box-shadow: 0 3px 0 #0002; align-self: flex-start; }
.bub .from { font-size: 11px; font-weight: 900; color: var(--purple); }
.bub.me { align-self: flex-end; border-radius: 18px 18px 6px 18px; background: linear-gradient(180deg, #a6f7cf, #6ce9b0); }
.bub.sys { align-self: center; background: #ffffff22; color: #fff; font-size: 12px; box-shadow: none; }
.bub.locked { filter: blur(3.5px); user-select: none; }
.bub.tip { border: 2px solid var(--yellow); }
.composer { display: flex; gap: 8px; position: sticky; bottom: 0; padding: 8px 0; }
.tool { border-radius: 18px; background: #fff; border: 3px solid #ffd6eb; padding: 10px; display: flex; flex-direction: column; gap: 4px; }
.tool .e { font-size: 32px; }
.tool.locked { filter: grayscale(1); opacity: .55; }

/* ---------- 任务 / 排行 / 我的 ---------- */
.quest { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 18px; background: #fff; border: 3px solid var(--line); }
.quest .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 26px; background: #f3edff; flex: none; }
.quest.done { border-color: var(--green); background: #f1fff8; }
.quest.done .chest { animation: wiggle 1s ease-in-out infinite; }
.quest.claimed { opacity: .55; }
.quest .chest { font-size: 30px; }
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 8px; padding-top: 30px; }
.podium .pl { text-align: center; color: #fff; }
.podium .pl .c { width: 62px; height: 62px; margin: 0 auto 6px; border-radius: 50%; display: grid; place-items: center; font-size: 32px; background: radial-gradient(circle at 35% 30%, #fff, #e9ddff); border: 4px solid #fff; position: relative; }
.podium .pl .crown { position: absolute; top: -26px; left: 50%; transform: translateX(-50%); font-size: 28px; animation: bob 2s ease-in-out infinite; }
.podium .pl .n { font-weight: 900; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.podium .pl .v { font-size: 12px; color: #ffe58a; font-weight: 900; }
.podium .step { margin-top: 8px; border-radius: 14px 14px 0 0; display: grid; place-items: center; font-size: 30px; font-weight: 900; color: #fff; text-shadow: 0 3px 0 #0005; box-shadow: inset 0 -6px 0 #0003; }
.podium .p1 .step { height: 110px; background: linear-gradient(180deg, #ffe680, #ff9f1c); } .podium .p2 .step { height: 80px; background: linear-gradient(180deg, #e6ecff, #9aa9d6); } .podium .p3 .step { height: 60px; background: linear-gradient(180deg, #ffd0a8, #d9864a); }
.podium .p1 .c { width: 76px; height: 76px; font-size: 40px; border-color: var(--yellow); }
.rank-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #fff; border-radius: 16px; border: 2px solid var(--line); }
.rank-row + .rank-row { margin-top: 6px; }
.rank-row .no { width: 30px; font-weight: 900; font-size: 18px; color: var(--ink2); text-align: center; }
.rank-row.me { border-color: var(--purple); background: #f3edff; }
.title-tag { display: inline-block; padding: 1px 8px; border-radius: 99px; font-size: 11px; font-weight: 900; color: #2a1b4d; }
.me-card { text-align: center; color: #fff; padding: 10px 0; }
.me-card .avatar { width: 96px; height: 96px; font-size: 48px; margin: 0 auto; }
.me-card .avatar::before { inset: 8px; }
.stat-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat-tiles div { background: #ffffff14; border-radius: 16px; padding: 10px 6px; text-align: center; color: #fff; }
.stat-tiles b { display: block; font-size: 17px; font-weight: 900; }
.stat-tiles small { font-size: 11px; color: #c9bbf5; }
.menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.menu-grid button { min-height: 92px; border-radius: 20px; border: 3px solid #fff; background: var(--panel); box-shadow: 0 5px 0 #0004; cursor: pointer; font-weight: 900; font-size: 13px; color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; position: relative; transition: transform .15s var(--pop); }
.menu-grid button i { font-style: normal; font-size: 32px; }
.menu-grid button:active { transform: scale(.94); }
.ach-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ach { text-align: center; padding: 8px 4px; border-radius: 16px; background: #fff; border: 3px solid var(--line); }
.ach .e { font-size: 30px; }
.ach .n { font-size: 10px; font-weight: 900; line-height: 1.2; }
.ach.off { filter: grayscale(1); opacity: .45; }
.ach.on { border-color: var(--yellow); background: #fffbea; }
/* 天赋树 */
.tree { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.branch { display: flex; flex-direction: column; align-items: center; gap: 14px; position: relative; padding-top: 6px; }
.branch::before { content: ""; position: absolute; top: 40px; bottom: 30px; left: 50%; width: 6px; transform: translateX(-50%); background: #ffffff1c; border-radius: 3px; }
.branch h5 { margin: 0; color: #fff; font-size: 13px; font-weight: 900; text-align: center; background: #ffffff1a; padding: 4px 8px; border-radius: 99px; position: relative; }
.node { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; position: relative; cursor: pointer; background: #4a3a8a; border: 4px solid #6b5aa8; box-shadow: 0 4px 0 #0005; transition: transform .15s var(--pop); filter: grayscale(.7); }
.node:active { transform: scale(.9); }
.node.can { filter: none; border-color: var(--green); background: radial-gradient(circle at 35% 30%, #fff, #c7f7df); animation: breathe-g 1.8s ease-in-out infinite; }
.node.owned { filter: none; border-color: var(--yellow); background: radial-gradient(circle at 35% 30%, #fff, #ffe58a); box-shadow: 0 4px 0 #c27a00, 0 0 18px #ffd23f99; }
.node .c { position: absolute; bottom: -8px; font-size: 10px; font-weight: 900; background: #000a; color: #fff; padding: 0 6px; border-radius: 99px; }
@keyframes breathe-g { 50% { box-shadow: 0 4px 0 #0005, 0 0 0 8px #2ee59d44; } }

/* 引导 */
.guide { position: absolute; inset: 0; z-index: 70; pointer-events: auto; }
.guide .hole { position: absolute; border-radius: 22px; box-shadow: 0 0 0 9999px #10072cd9; transition: all .35s var(--pop); pointer-events: none; }
.guide .hole::after { content: ""; position: absolute; inset: -6px; border-radius: 26px; border: 3px dashed var(--yellow); animation: holepulse 1.2s ease-in-out infinite; }
@keyframes holepulse { 50% { inset: -11px; opacity: .6; } }
.guide .tip { position: absolute; left: 16px; right: 16px; background: var(--panel); border-radius: 22px; padding: 14px 16px; border: 4px solid #fff; box-shadow: 0 6px 0 #0005; font-weight: 800; animation: pop .35s var(--pop); }
.guide .tip b { font-size: 18px; display: block; margin-bottom: 4px; }
.guide .hand { position: absolute; font-size: 44px; animation: point 1s ease-in-out infinite; pointer-events: none; filter: drop-shadow(0 4px 0 #0005); }
@keyframes point { 50% { transform: translate(6px, 10px) scale(.92); } }

/* 宝箱 */
.chest-big { font-size: 110px; display: inline-block; cursor: pointer; animation: wiggle 1.2s ease-in-out infinite; filter: drop-shadow(0 10px 0 #0004); }
.chest-big.open { animation: chestopen .6s var(--pop) forwards; }
@keyframes chestopen { 40% { transform: scale(1.3) rotate(-8deg); } 100% { transform: scale(1); } }
.rays { position: absolute; left: 50%; top: 120px; width: 360px; height: 360px; margin: -180px 0 0 -180px; background: repeating-conic-gradient(#ffd23f55 0 10deg, transparent 10deg 20deg); border-radius: 50%; animation: spin 10s linear infinite; z-index: -1; mask: radial-gradient(circle, #000 30%, transparent 70%); -webkit-mask: radial-gradient(circle, #000 30%, transparent 70%); }
.loot { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 8px 0; }
.loot span { background: #fff1c2; border-radius: 12px; padding: 4px 10px; font-weight: 900; font-size: 13px; animation: pop .4s var(--pop) backwards; }

/* 转盘 */
.wheel-wrap { position: relative; width: 280px; height: 280px; margin: 10px auto; }
.wheel { width: 100%; height: 100%; border-radius: 50%; border: 8px solid #fff; box-shadow: 0 8px 0 #0005, 0 0 0 4px var(--orange); transition: transform 4s cubic-bezier(.17, .89, .2, 1); position: relative; overflow: hidden;
  background: conic-gradient(#ff6fb8 0 51.4deg, #ffd23f 0 102.8deg, #2ee59d 0 154.2deg, #4d7cff 0 205.6deg, #ff9f1c 0 257deg, #8b5cf6 0 308.4deg, #ff4d5e 0 360deg); }
.wheel span { position: absolute; left: 50%; top: 50%; transform-origin: 0 0; font-size: 30px; filter: drop-shadow(0 2px 0 #0003); }
.wheel-pin { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-size: 40px; z-index: 2; filter: drop-shadow(0 3px 0 #0005); }
.wheel-hub { position: absolute; inset: 41%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #ffd23f); border: 4px solid #fff; box-shadow: 0 4px 0 #0004; display: grid; place-items: center; font-size: 26px; z-index: 2; }

/* 登录 */
#login { position: absolute; inset: 0; overflow-y: auto; padding: 24px 18px 30px; display: flex; flex-direction: column; gap: 16px; align-items: center; justify-content: center; }
#login .logo { font-size: 44px; text-align: center; line-height: 1.15; margin: 4px 0 0; }
#login .tagline { color: #e3d9ff; text-align: center; font-weight: 700; max-width: 340px; }
#login .scene { width: 100%; height: 250px; cursor: default; }
#login .panel { width: 100%; }

/* 侧栏（桌面） */
.side .panel { padding: 12px; }
.side .mini-feed > div { padding: 8px 0; border-bottom: 2px dashed var(--line); font-weight: 700; font-size: 13px; }
.side .mini-feed > div:last-child { border-bottom: 0; }

/* 空状态 / 加载 */
.empty { text-align: center; padding: 26px 10px; color: #c9bbf5; font-weight: 800; }
.empty .e { font-size: 54px; display: block; margin-bottom: 6px; animation: bob 3s ease-in-out infinite; }
.panel .empty { color: var(--ink2); }
.skel { height: 90px; border-radius: 20px; background: linear-gradient(90deg, #ffffff10 25%, #ffffff22 50%, #ffffff10 75%); background-size: 200% 100%; animation: skel 1.2s linear infinite; }
@keyframes skel { to { background-position: -200% 0; } }
details.adv summary { cursor: pointer; font-weight: 900; color: var(--ink2); list-style: none; padding: 6px 0; }
details.adv summary::before { content: "▸ "; } details.adv[open] summary::before { content: "▾ "; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 13px; }
.kv b { text-align: right; }
.book { font-size: 12px; font-family: ui-monospace, monospace; }
.book div { display: flex; justify-content: space-between; padding: 1px 4px; }

@media (max-width: 370px) { .rigs { width: 260px; gap: 4px 6px; } .rig-slot { width: 56px; } .rig-slot .r { font-size: 34px; } .cards { gap: 8px; } }

/* 减少动效 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  #sky i { animation: none; }
}
