#app { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; background: rgba(0, 0, 0, .6); }
.mw-g-card { position: relative; width: min(980px, calc(100vw - 32px)); height: min(680px, calc(100vh - 48px)); display: flex; flex-direction: column; gap: 10px; padding: 14px;
  border-radius: 16px; border: 1px solid var(--line-strong); background: var(--panel-solid); box-shadow: var(--glow); color: var(--text); }
.mw-g-h { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mw-g-h b { font-size: 16px; }
.mw-g-coins { color: #FFD166; font-weight: 700; font-size: 13px; }
.mw-g-tabs { display: flex; gap: 6px; margin-left: auto; }
.mw-g-tabs .tbtn.on, .mw-g-hero .tbtn.on { color: var(--accent); border-color: var(--accent); }
.mw-g-body { flex: 1; min-height: 0; overflow: auto; }
.mw-g-stage { position: relative; width: 100%; height: 100%; border-radius: 12px; overflow: hidden; }
#mw-g-cv { display: block; width: 100%; height: 100%; cursor: crosshair; }
.mw-g-over { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: rgba(8, 12, 20, .72); text-align: center; padding: 16px; }
.mw-g-over img { height: 110px; image-rendering: pixelated; }
.mw-g-over small { color: var(--muted); max-width: 420px; }
.mw-g-big { padding: 10px 34px; border-radius: 99px; border: 0; cursor: pointer; font-size: 16px; font-weight: 800; color: #08121c; background: linear-gradient(90deg, #00C4AE, #7AA2FF); }
.mw-g-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.mw-g-hero { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 10px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); text-align: center; }
.mw-g-hero.super { border-color: rgba(255, 209, 102, .6); background: linear-gradient(180deg, rgba(255, 209, 102, .12), transparent); }
.mw-g-hero.sel { box-shadow: 0 0 0 2px var(--accent); }
.mw-g-hero img { height: 80px; image-rendering: pixelated; }
.mw-g-hero small { color: var(--muted); font-size: 11px; min-height: 28px; }
.mw-g-tier { position: absolute; top: 8px; left: 8px; font-size: 10px; padding: 1px 6px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); }
.mw-g-hero.super .mw-g-tier { color: #FFD166; border-color: rgba(255, 209, 102, .6); }
.mw-g-buy { padding: 5px 12px; border-radius: 99px; border: 1px solid #FFD166; background: transparent; color: #FFD166; cursor: pointer; font-weight: 700; font-size: 12px; }
.mw-g-buy.rmb { border-color: #FF5C7A; color: #fff; background: #FF5C7A; }
.mw-g-coinbig { font-size: 44px; line-height: 1.2; }
.mw-g-tip { color: var(--muted); font-size: 12px; margin-top: 12px; }
.mw-g-foot { font-size: 11px; color: var(--muted); }
.mw-g-confirm { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .5); border-radius: 16px; }
.mw-g-confirm > div { padding: 18px 20px; border-radius: 12px; background: var(--panel-solid); border: 1px solid var(--line-strong); text-align: center; max-width: 320px; }
.mw-g-row { display: flex; gap: 10px; justify-content: center; margin-top: 12px; }
.mw-g-toast { position: absolute; left: 50%; bottom: 48px; transform: translateX(-50%); padding: 8px 14px; border-radius: 99px; background: rgba(0, 196, 174, .9); color: #06121a; font-weight: 700; font-size: 13px; }
.mw-g-buy.stone { border-color: #7ad7ff; color: #7ad7ff; }
.mw-g-sec { grid-column: 1 / -1; margin: 14px 2px 8px; font-size: 13px; font-weight: 600; color: #7ad7ff; letter-spacing: .04em; }
.mw-g-sec:first-child { margin-top: 2px; }
@keyframes mwGlow { 0%,100% { box-shadow: 0 0 6px rgba(255,209,102,.25), inset 0 0 0 1px rgba(255,209,102,.3); } 50% { box-shadow: 0 0 18px rgba(255,209,102,.55), inset 0 0 0 1px rgba(255,209,102,.7); } }
.mw-g-hero.super { animation: mwGlow 2.4s ease-in-out infinite; }
.mw-g-hero.super.sel { box-shadow: 0 0 0 2px var(--accent), 0 0 18px rgba(255,209,102,.5); animation: none; }
.mw-g-buy.gem { background: linear-gradient(90deg, #4fb8ff, #a77bff); color: #fff; }
.mw-g-buy.gift { background: linear-gradient(90deg, #ff7ad9, #FFD166); color: #1a1020; font-weight: 700; }
.mw-g-lv { font-size: 11px; padding: 1px 6px; border-radius: 8px; background: rgba(122,215,255,.15); color: #7ad7ff; margin-left: 4px; }
.mw-g-hero.daily { border-color: rgba(255,122,217,.45); background: linear-gradient(180deg, rgba(255,122,217,.10), transparent); }
.mw-g-hero.daily .mw-g-tier { color: #ff7ad9; border-color: rgba(255,122,217,.5); }
.mw-g-hero.daily.locked img { filter: brightness(.35) saturate(.4); }
.mw-g-hero.daily.today { animation: mwGlow 1.6s ease-in-out infinite; }
.mw-g-tabs .tbtn.mw-g-dot { position: relative; }
.mw-g-tabs .tbtn.mw-g-dot::after { content: ''; position: absolute; top: 3px; right: 3px; width: 8px; height: 8px; border-radius: 50%; background: #ff5c7a; box-shadow: 0 0 6px #ff5c7a; }
/* ---- 守护小人 v3：稀有度卡片、炫酷图标、动态特效 ---- */
.mw-ic { display: inline-block; width: 18px; height: 18px; vertical-align: -4px; margin: 0 3px 0 6px; }
.mw-ic svg { width: 100%; height: 100%; display: block; overflow: visible; }
.mw-ic.coin svg { animation: mwCoin 3.2s linear infinite; filter: drop-shadow(0 0 3px rgba(255,200,60,.7)); }
.mw-ic.stone svg { animation: mwStone 2s ease-in-out infinite; }
.mw-ic.gem svg { animation: mwGem 2.4s ease-in-out infinite; }
@keyframes mwCoin { 0%,70% { transform: rotateY(0); } 85% { transform: rotateY(180deg); } 100% { transform: rotateY(360deg); } }
@keyframes mwStone { 0%,100% { filter: drop-shadow(0 0 2px #a77bff); transform: translateY(0); } 50% { filter: drop-shadow(0 0 8px #2ff5dc); transform: translateY(-1px); } }
@keyframes mwGem { 0%,100% { filter: drop-shadow(0 0 2px #5fe3ff) brightness(1); } 50% { filter: drop-shadow(0 0 9px #9ff3ff) brightness(1.35); } }
.mw-g-coins { display: flex; align-items: center; gap: 0; color: #fff; }
.mw-g-coins i { font-style: normal; font-weight: 800; margin-right: 3px; display: inline-block; }
.mw-g-coins i.pop { animation: mwPop .4s ease; color: #ffd23f; }
.mw-g-coins em { font-style: normal; color: var(--muted); margin-left: 12px; font-size: 12px; }
@keyframes mwPop { 50% { transform: scale(1.4); } }
.mw-g-title { background: linear-gradient(90deg, #2ff5dc, #7aa2ff, #ff7ad9); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 18px !important; }
.mw-g-seasons { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.mw-g-seasons .tbtn.on { color: #08121c; background: linear-gradient(90deg, #2ff5dc, #7aa2ff); border-color: transparent; }
.mw-g-reward { padding: 6px 14px; border-radius: 99px; background: linear-gradient(90deg, rgba(95,227,255,.18), rgba(167,123,255,.18)); color: #bff6ff; font-weight: 800; }
.mw-g-buy.usd { border: 0; color: #fff; background: linear-gradient(90deg, #ff5c7a, #ff9a3c); box-shadow: 0 0 12px rgba(255,92,122,.35); }
.mw-g-buy.stone { background: rgba(138,92,255,.12); border-color: #a77bff; color: #d9c4ff; }
.mw-g-buy .mw-ic { margin: 0 4px 0 0; width: 15px; height: 15px; vertical-align: -3px; }
/* 稀有度 */
.mw-g-hero { overflow: hidden; transition: transform .15s; }
.mw-g-hero:hover { transform: translateY(-2px); }
.mw-g-hero.r-fine { border-color: rgba(61,220,132,.45); }
.mw-g-hero.r-rare { border-color: rgba(122,162,255,.6); background: linear-gradient(180deg, rgba(122,162,255,.12), transparent); }
.mw-g-hero.r-epic { border-color: rgba(180,140,255,.7); background: linear-gradient(180deg, rgba(180,140,255,.16), transparent); }
.mw-g-hero.r-legend { border-color: rgba(255,176,46,.8); background: linear-gradient(180deg, rgba(255,176,46,.18), transparent); animation: mwGlow 2.4s ease-in-out infinite; }
.mw-g-hero.r-myth { border-color: transparent; background: linear-gradient(180deg, rgba(255,92,122,.2), rgba(20,10,30,.6)); }
.mw-g-hero.r-myth::before { content: ''; position: absolute; inset: -60%; background: conic-gradient(from 0deg, #ff5c7a, #ffd23f, #2ff5dc, #7aa2ff, #ff7ad9, #ff5c7a); animation: mwSpin 4s linear infinite; z-index: -2; }
.mw-g-hero.r-myth::after { content: ''; position: absolute; inset: 2px; border-radius: 10px; background: linear-gradient(180deg, #2a1424, #0d1220 70%); z-index: -1; }
.mw-g-hero.r-myth, .mw-g-hero.r-legend { isolation: isolate; }
.mw-g-hero.r-daily { border-color: rgba(255,122,217,.45); background: linear-gradient(180deg, rgba(255,122,217,.10), transparent); }
.mw-g-hero.r-daily .mw-g-tier { color: #ff7ad9; border-color: rgba(255,122,217,.5); }
.mw-g-hero.r-daily.locked img { filter: brightness(.35) saturate(.4); }
.mw-g-hero.r-daily.today { animation: mwGlow 1.6s ease-in-out infinite; }
.mw-g-hero.r-rare .mw-g-tier { color: #9db8ff; border-color: rgba(122,162,255,.6); }
.mw-g-hero.r-epic .mw-g-tier { color: #d2b8ff; border-color: rgba(180,140,255,.7); }
.mw-g-hero.r-legend .mw-g-tier { color: #ffc65c; border-color: rgba(255,176,46,.8); }
.mw-g-hero.r-myth .mw-g-tier { color: #fff; border: 0; background: linear-gradient(90deg, #ff5c7a, #ff9a3c); font-weight: 800; }
.mw-g-hero.sel { box-shadow: 0 0 0 2px var(--accent), 0 0 16px rgba(47,245,220,.4); }
@keyframes mwSpin { to { transform: rotate(360deg); } }
.mw-g-pic { position: relative; height: 84px; display: grid; place-items: center; }
.mw-g-pic img { height: 80px; image-rendering: pixelated; animation: mwBob 2.2s ease-in-out infinite; }
.r-legend .mw-g-pic::before, .r-myth .mw-g-pic::before { content: ''; position: absolute; width: 70px; height: 70px; border-radius: 50%; background: radial-gradient(circle, rgba(255,210,63,.45), transparent 70%); animation: mwPulse 1.8s ease-in-out infinite; }
@keyframes mwBob { 50% { transform: translateY(-3px); } }
@keyframes mwPulse { 50% { transform: scale(1.25); opacity: .6; } }
.mw-g-pack { display: flex; gap: 2px; height: 52px; align-items: center; }
.mw-g-pack .mw-ic { width: 34px; height: 34px; margin: 0; }
.mw-g-hero small .mw-ic { width: 13px; height: 13px; margin: 0 2px 0 0; vertical-align: -2px; }
/* 武器 / 装备动态图标 */
.mw-g-fx { position: relative; width: 70px; height: 62px; display: grid; place-items: center; }
.mw-g-fx span { position: relative; z-index: 2; font-size: 40px; line-height: 1; filter: drop-shadow(0 0 6px rgba(255,255,255,.25)); }
.mw-g-fx::before, .mw-g-fx::after { content: ''; position: absolute; inset: 6px; border-radius: 50%; }
.wfx-w0::before { border: 2px solid #2ff5dc; animation: mwRing 1.2s ease-out infinite; }
.wfx-w1::before { background: radial-gradient(circle, rgba(255,227,163,.35), transparent 70%); animation: mwPulse 0.5s ease-in-out infinite; }
.wfx-w2::before { inset: auto; width: 12px; height: 12px; left: 50px; top: 8px; border: 2px solid #9fe7ff; animation: mwBubble 1.6s ease-in infinite; }
.wfx-w2::after { inset: auto; width: 8px; height: 8px; left: 10px; top: 14px; border: 2px solid #9fe7ff; animation: mwBubble 1.6s .6s ease-in infinite; }
.wfx-w3::before { inset: 8px 4px 0; border-radius: 50% 50% 40% 40%; background: radial-gradient(ellipse at 50% 80%, #fff3b0, #ff9a3c 40%, #e2462b 65%, transparent 72%); animation: mwFlame .25s ease-in-out infinite alternate; filter: blur(1px); }
.wfx-w4::before { background: radial-gradient(circle, rgba(255,224,102,.6), transparent 65%); animation: mwFlicker .35s steps(2) infinite; }
.wfx-w5::before { border: 2px dashed #bdf2ff; animation: mwSpin 6s linear infinite; }
.wfx-w5::after { background: radial-gradient(circle, rgba(189,242,255,.45), transparent 65%); animation: mwPulse 2s ease-in-out infinite; }
.wfx-w6::before { inset: 29px -10px; border-radius: 4px; background: linear-gradient(90deg, transparent, #ff7ad9, #fff, #ff7ad9, transparent); animation: mwBeam 1.1s ease-in-out infinite; }
.wfx-w7::before { background: radial-gradient(circle, rgba(180,140,255,.7), transparent 65%); animation: mwPulse 1s ease-in-out infinite; }
.wfx-w7::after { border: 2px solid #b48cff; animation: mwRing 1s ease-out infinite; }
.wfx-w8::before { background: radial-gradient(circle, #000 30%, rgba(195,139,255,.6) 50%, transparent 70%); animation: mwSpin 1.4s linear infinite; }
.wfx-w8::after { border: 2px dotted #c38bff; animation: mwSpin 2.4s linear infinite reverse; }
.wfx-w9::before { background: radial-gradient(circle, rgba(255,176,46,.75), rgba(255,92,46,.3) 50%, transparent 70%); animation: mwPulse .8s ease-in-out infinite; }
.wfx-w9::after { border: 3px solid #ffb02e; animation: mwRing .9s ease-out infinite; }
.wfx-w10::before { inset: 0; background: conic-gradient(#8af5ff, #ff7ad9, #ffd23f, #8af5ff); animation: mwSpin 2s linear infinite; opacity: .6; filter: blur(6px); }
.wfx-w10::after { border: 2px solid #fff; animation: mwRing 1.2s ease-out infinite; }
.fx-a1::before { inset: auto 6px 4px; height: 10px; border: 2px dashed #2ff5dc; animation: mwSpin 6s linear infinite; }
.fx-a2::before { background: radial-gradient(circle, rgba(80,200,110,.45), transparent 65%); animation: mwFade 1.4s ease-in-out infinite; }
.fx-a3::before { border: 3px double #b8c2d4; animation: mwSpin 3s linear infinite; }
.fx-a4::before { border-radius: 30%; border: 2px solid #2ff5dc; background: repeating-linear-gradient(60deg, rgba(47,245,220,.15) 0 4px, transparent 4px 9px); animation: mwPulse 1.6s ease-in-out infinite; }
.fx-a5::before { border: 2px dotted #7fe9ff; animation: mwSpin 1.6s linear infinite; box-shadow: 0 0 12px #7fe9ff; }
.fx-a6::before { border: 2px solid #ffd23f; box-shadow: 0 0 14px #ffd23f, inset 0 0 10px #ffd23f; animation: mwSpin 5s linear infinite; }
.fx-a6::after { inset: 14px; border: 1px dashed #ffd23f; animation: mwSpin 3s linear infinite reverse; }
.fx-a7::before { background: radial-gradient(circle, rgba(180,140,255,.6), rgba(90,120,255,.25) 55%, transparent 70%); animation: mwPulse 2s ease-in-out infinite; }
.fx-a7::after { border-top: 3px solid #fff; border-right: 3px solid transparent; animation: mwSpin 1.2s linear infinite; }
.fx-a8::before { inset: 0; border: 2px solid #7fe9ff; box-shadow: 0 0 16px #7fe9ff, inset 0 0 12px #ffd23f; animation: mwSpin 3s linear infinite; }
.fx-a8::after { inset: 10px; border: 2px dashed #ffd23f; animation: mwSpin 2s linear infinite reverse; }
.fx-v4::before, .fx-v5::before { background: radial-gradient(circle, rgba(255,92,122,.55), transparent 65%); animation: mwBeat 1s ease-in-out infinite; }
@keyframes mwRing { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.3); opacity: 0; } }
@keyframes mwBubble { from { transform: translateY(30px) scale(.6); opacity: 0; } 30% { opacity: 1; } to { transform: translateY(-6px) scale(1.1); opacity: 0; } }
@keyframes mwFlame { from { transform: scaleY(.85) translateY(3px); } to { transform: scaleY(1.1) translateY(-2px); } }
@keyframes mwFlicker { 50% { opacity: .2; } }
@keyframes mwBeam { 0%,100% { transform: scaleX(.2); opacity: 0; } 50% { transform: scaleX(1); opacity: 1; } }
@keyframes mwFade { 50% { opacity: .2; } }
@keyframes mwBeat { 0%,100% { transform: scale(.9); } 15% { transform: scale(1.2); } 30% { transform: scale(.95); } 45% { transform: scale(1.1); } }
.mw-g-snd { font-size: 12px; }
.mw-g-snd.off { opacity: .45; text-decoration: line-through; }
/* ---- 守护小人 v4：游戏字体与按钮设计 ---- */
#app { --gf-t: "Lilita One", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif; --gf-n: "Lilita One", "Arial Rounded MT Bold", sans-serif; }
#app .mw-g-h { flex-wrap: nowrap; gap: 14px; }
#app .mw-g-title { font-family: var(--gf-t); font-weight: 400; font-size: 30px !important; letter-spacing: 2px; line-height: 1; white-space: nowrap;
  background: linear-gradient(180deg, #fff 0%, #9ff8ec 35%, #2ff5dc 55%, #7aa2ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 #0b3a52) drop-shadow(0 0 10px rgba(47,245,220,.45)); transform: rotate(-2deg); }
#app .mw-g-coins { gap: 6px; flex-wrap: nowrap; white-space: nowrap; }
#app .mw-cur { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px 3px 4px; border-radius: 99px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.08); box-shadow: inset 0 -2px 0 rgba(0,0,0,.35); }
#app .mw-cur .mw-ic { width: 22px; height: 22px; margin: 0; }
#app .mw-cur i { font-family: var(--gf-n); font-size: 18px; font-weight: 400; letter-spacing: .5px; margin: 0; text-shadow: 0 2px 0 rgba(0,0,0,.5); }
#app .mw-cur u { text-decoration: none; font-family: var(--gf-t); font-size: 12px; opacity: .8; }
#app .mw-cur.c i { color: #ffd23f; } #app .mw-cur.s i { color: #d4b8ff; } #app .mw-cur.g i { color: #8af5ff; }
#app .mw-cur.c { border-color: rgba(255,210,63,.3); } #app .mw-cur.s { border-color: rgba(167,123,255,.35); } #app .mw-cur.g { border-color: rgba(95,227,255,.35); }
#app .mw-g-coins em { font-family: var(--gf-t); font-size: 14px; color: #ffcf6b; margin-left: 4px; }
/* 页签：立体游戏按钮 */
#app .mw-g-tabs { gap: 6px; flex-wrap: nowrap; }
#app .mw-g-tabs .tbtn { font-family: var(--gf-t); font-size: 16px; letter-spacing: 1px; padding: 6px 14px 7px; border-radius: 12px; border: 1px solid rgba(255,255,255,.1); color: #cfe3f5;
  background: linear-gradient(180deg, #1d2a40, #121a2b); box-shadow: 0 3px 0 #070b13, inset 0 1px 0 rgba(255,255,255,.08); transition: transform .08s, box-shadow .08s; white-space: nowrap; }
#app .mw-g-tabs .tbtn:hover { color: #fff; transform: translateY(-1px); }
#app .mw-g-tabs .tbtn:active { transform: translateY(2px); box-shadow: 0 1px 0 #070b13; }
#app .mw-g-tabs .tbtn.on { color: #062027; border-color: transparent; background: linear-gradient(180deg, #7ffbe9, #2ff5dc 45%, #13b9a6); box-shadow: 0 3px 0 #0a6b61, 0 0 14px rgba(47,245,220,.45); text-shadow: 0 1px 0 rgba(255,255,255,.4); }
#app .mw-g-tools { display: flex; gap: 6px; }
#app .mw-g-ib { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); background: linear-gradient(180deg, #1d2a40, #121a2b); box-shadow: 0 3px 0 #070b13; color: #dfe9f5; font-size: 16px; cursor: pointer; display: grid; place-items: center; padding: 0; }
#app .mw-g-ib:active { transform: translateY(2px); box-shadow: 0 1px 0 #070b13; }
#app .mw-g-ib.off { opacity: .4; filter: grayscale(1); text-decoration: none; }
#app #mw-g-x:hover { background: linear-gradient(180deg, #ff6b86, #d93a5a); color: #fff; }
@media (max-width: 1100px) { #app .mw-g-h { flex-wrap: wrap; } #app .mw-g-tabs { margin-left: 0; flex-wrap: wrap; } }
/* 开始页 */
#app .mw-g-heroimg { height: 120px; filter: drop-shadow(0 6px 0 rgba(0,0,0,.35)) drop-shadow(0 0 16px rgba(47,245,220,.35)); animation: mwBob 2s ease-in-out infinite; }
#app .mw-g-hname { font-family: var(--gf-t); font-size: 30px; line-height: 1; color: #fff; letter-spacing: 2px; text-shadow: 0 3px 0 #0b3a52, 0 0 14px rgba(47,245,220,.6), 2px 0 0 #0b3a52, -2px 0 0 #0b3a52, 0 -2px 0 #0b3a52; }
#app .mw-g-hinfo { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
#app .mw-g-hinfo .chip { font-family: var(--gf-t); font-size: 15px; color: #e8f4ff; padding: 5px 12px; border-radius: 10px; background: rgba(8,14,26,.7); border: 1px solid rgba(255,255,255,.12); box-shadow: inset 0 -2px 0 rgba(0,0,0,.4); }
#app .mw-g-hinfo .chip b { font-family: var(--gf-n); font-weight: 400; font-size: 17px; }
#app .mw-g-hinfo .chip.hp b { color: #ff7a90; } #app .mw-g-hinfo .chip.atk b { color: #ffd23f; }
#app .mw-g-hinfo .lv { color: #8af5ff; font-size: 14px !important; margin-left: 2px; }
#app .mw-g-seasons .tbtn { font-family: var(--gf-t); font-size: 15px; letter-spacing: 1px; padding: 6px 14px; border-radius: 99px; background: rgba(8,14,26,.75); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 3px 0 rgba(0,0,0,.45); }
#app .mw-g-seasons .tbtn.on { color: #062027; background: linear-gradient(90deg, #7ffbe9, #7aa2ff); box-shadow: 0 3px 0 #0a4b6b, 0 0 14px rgba(122,162,255,.5); }
#app .mw-g-big { position: relative; overflow: hidden; font-family: var(--gf-t); font-size: 28px; font-weight: 400; letter-spacing: 6px; padding: 12px 48px 14px 54px; border-radius: 22px; color: #fff;
  background: linear-gradient(180deg, #ffd86b 0%, #ff9a3c 45%, #ff5c7a 100%); border: 2px solid #fff3c4; box-shadow: 0 6px 0 #a3283f, 0 10px 24px rgba(255,92,122,.45); text-shadow: 0 2px 0 #a3283f, 2px 0 0 #a3283f, -2px 0 0 #a3283f, 0 -2px 0 #a3283f; transition: transform .08s, box-shadow .08s; }
#app .mw-g-big:hover { transform: translateY(-2px) scale(1.03); }
#app .mw-g-big:active { transform: translateY(4px); box-shadow: 0 2px 0 #a3283f, 0 4px 10px rgba(255,92,122,.4); }
#app .mw-g-big::after { content: ''; position: absolute; top: -20%; left: -40%; width: 30%; height: 140%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-20deg); animation: mwShine 2.6s ease-in-out infinite; }
@keyframes mwShine { 0%, 60% { left: -40%; } 100% { left: 130%; } }
#app .mw-g-tips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; max-width: 640px; }
#app .mw-g-tips > span { font-size: 12px; color: #cfdbea; padding: 4px 10px; border-radius: 99px; background: rgba(8,14,26,.65); border: 1px solid rgba(255,255,255,.08); display: inline-flex; align-items: center; gap: 3px; }
#app .mw-g-tips .mw-ic { width: 14px; height: 14px; margin: 0 2px 0 0; }
#app .mw-g-tips b { font-family: var(--gf-n); font-weight: 400; color: #ffd23f; }
#app .mw-g-overt { font-family: var(--gf-t); font-size: 30px; letter-spacing: 2px; color: #fff; text-shadow: 0 3px 0 #6b1022, 0 0 18px rgba(255,92,122,.7); }
#app .mw-g-over { gap: 12px; background: radial-gradient(ellipse at center, rgba(8,12,20,.55), rgba(8,12,20,.85)); }
#app .mw-g-reward { font-family: var(--gf-t); font-size: 17px; }
/* 卡片字体 */
#app .mw-g-hero > b { font-family: var(--gf-t); font-weight: 400; font-size: 19px; letter-spacing: 1px; color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.5); }
#app .r-legend > b { color: #ffd77a; } #app .r-myth > b { background: linear-gradient(90deg, #ffd23f, #ff7ad9, #8af5ff); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 2px 0 rgba(0,0,0,.5)); }
#app .mw-g-tier { font-family: var(--gf-t); font-size: 12px; letter-spacing: 1px; }
#app .mw-g-lv { font-family: var(--gf-n); font-size: 13px; }
#app .mw-g-buy { font-family: var(--gf-n); font-weight: 400; font-size: 15px; letter-spacing: .5px; padding: 6px 16px 7px; box-shadow: 0 3px 0 rgba(0,0,0,.45); }
#app .mw-g-buy.usd { background: linear-gradient(180deg, #ff9fb0, #ff5c7a 50%, #e23a5c); box-shadow: 0 3px 0 #8f1f37, 0 0 12px rgba(255,92,122,.4); text-shadow: 0 1px 0 rgba(0,0,0,.3); }
#app .mw-g-buy.gem { background: linear-gradient(180deg, #9fe9ff, #4fb8ff 50%, #7b5cff); box-shadow: 0 3px 0 #2b2f8f; }
#app .mw-g-buy.gift { font-family: var(--gf-t); background: linear-gradient(180deg, #ffe39a, #ffb0d8 50%, #ff7ad9); box-shadow: 0 3px 0 #9a2f7a; }
#app .mw-g-hero .tbtn { font-family: var(--gf-t); font-size: 14px; border-radius: 10px; box-shadow: 0 3px 0 rgba(0,0,0,.45); }
#app .mw-g-sec { font-family: var(--gf-t); font-size: 18px; font-weight: 400; letter-spacing: 1px; color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.5); }
#app .mw-g-toast { font-family: var(--gf-t); font-size: 16px; letter-spacing: 1px; }
#app .mw-g-confirm p { font-family: var(--gf-t); font-size: 18px; }
#app .mw-g-confirm small { font-family: inherit; font-size: 12px; opacity: .75; }

/* 头部两行：标题 + 货币 + 工具按钮一行，页签一行 */
#app .mw-g-h { flex-wrap: wrap !important; row-gap: 10px; }
#app .mw-g-tools { margin-left: auto; order: 2; }
#app .mw-g-tabs { order: 3; width: 100%; margin-left: 0 !important; flex-wrap: wrap !important; }
#app .mw-g-tabs .tbtn { flex: 1 1 0; min-width: 84px; text-align: center; }
#app .mw-g-title { font-size: 32px !important; }
/* Little Guardians — app shell (full-screen, mobile first) */
@font-face { font-family: 'Lilita One'; src: url(fonts/LilitaOne-Regular.ttf) format('truetype'); font-display: swap; }
:root { --bg: #05070d; --panel: rgba(12, 18, 32, .78); --panel-solid: #0c1220; --line: rgba(120, 200, 255, .14); --line-strong: rgba(120, 200, 255, .32);
  --text: #e6f1ff; --muted: #8b98b3; --accent: #2ff5dc; --glow: 0 0 18px rgba(53, 224, 255, .35); color-scheme: dark; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: radial-gradient(ellipse at top, #12203a, #05070d 70%) fixed; color: var(--text);
  font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-tap-highlight-color: transparent; overscroll-behavior: none; }
button { font: inherit; color: inherit; }
a { color: var(--accent); }
.tbtn { padding: 6px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; font-size: 13px; white-space: nowrap; color: var(--text); }
.tbtn:hover { border-color: var(--accent); color: var(--accent); }
.tbtn:disabled { opacity: .6; cursor: default; }
.tbtn.danger { border-color: rgba(255, 92, 122, .5); color: #ff8a9c; }
#app { position: fixed; inset: 0; display: flex; justify-content: center; }
#app.busy { cursor: progress; }
#app.busy .mw-g-body button { pointer-events: none; opacity: .75; }
#app .mw-g-card { width: 100%; max-width: 1180px; height: 100%; height: 100dvh; border-radius: 0; border: 0; box-shadow: none; background: transparent;
  padding: max(10px, env(safe-area-inset-top)) 14px max(8px, env(safe-area-inset-bottom)); gap: 10px; }
#app .mw-g-title { font-size: 28px !important; letter-spacing: 1px; text-transform: uppercase; }
#app .mw-g-tabs .tbtn span { margin-right: 5px; }
#app .mw-g-acct { display: inline-flex; align-items: center; gap: 6px; max-width: 220px; height: 36px; padding: 0 12px; border-radius: 99px; border: 1px solid rgba(47, 245, 220, .4);
  background: linear-gradient(180deg, #1d2a40, #121a2b); box-shadow: 0 3px 0 #070b13; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; font-size: 13px; }
#app .mw-g-acct.guest { border-color: rgba(255, 210, 63, .6); color: #ffd23f; }
#app .mw-g-foot { text-align: center; font-size: 11px; }
#app .mw-g-foot a { color: var(--muted); }
#app .sbx { color: #ffb02e; }
.sbxtag { display: inline-block; background: #ffb02e; color: #201300; font-weight: 800; border-radius: 99px; padding: 3px 10px; font-size: 11px; }
#app .mw-g-stage { min-height: 420px; touch-action: none; }
#app #mw-g-cv { touch-action: none; }
#app .mw-g-fatal { padding: 60px 20px; text-align: center; font-size: 16px; }
/* modals */
#app .mw-g-confirm { position: fixed; inset: 0; z-index: 50; padding: 16px; background: rgba(2, 5, 12, .72); backdrop-filter: blur(4px); border-radius: 0; overflow: auto; }
#app .mw-g-modal { position: relative; width: min(460px, 100%); margin: auto; padding: 22px 20px 18px; border-radius: 18px; background: linear-gradient(180deg, #16213a, #0d1424);
  border: 1px solid var(--line-strong); box-shadow: 0 20px 60px rgba(0, 0, 0, .6); text-align: left; max-width: 460px; }
#app .mw-g-modal h3 { font-family: var(--gf-t); font-weight: 400; font-size: 26px; margin: 0 0 10px; letter-spacing: .5px; color: #fff; }
#app .mw-g-modal h4 { margin: 16px 0 6px; font-size: 14px; color: #bfe9ff; }
#app .mw-g-modal p { margin: 6px 0; color: #cfdbea; }
#app .mw-g-modal .warn { color: #ffd23f; }
#app .mw-g-mx { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; font-size: 14px; }
#app .mw-g-form { display: flex; gap: 8px; margin: 10px 0; }
#app .mw-g-form input { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: #0a101c; color: #fff; font-size: 16px; }
#app .mw-g-kv { display: flex; justify-content: space-between; margin: 12px 0 4px; padding: 10px 12px; border-radius: 10px; background: rgba(0, 0, 0, .3); }
#app .mw-g-orders { max-height: 180px; overflow: auto; font-size: 13px; }
#app .mw-g-orders > div { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); }
#app .mw-g-orders .st-paid { color: #3dffa8; } #app .mw-g-orders .st-pending { color: #ffd23f; } #app .mw-g-orders b { white-space: nowrap; font-weight: 600; }
#app .mw-g-row.wrap { flex-wrap: wrap; justify-content: flex-start; }
#app .mw-g-co { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: rgba(0, 0, 0, .3); margin-bottom: 12px; }
#app .mw-g-co-item { display: flex; gap: 10px; align-items: center; min-width: 0; }
#app .mw-g-co-item img { height: 64px; image-rendering: pixelated; }
#app .mw-g-co-item .big { font-size: 40px; }
#app .mw-g-co-item b { display: block; font-family: var(--gf-t); font-weight: 400; font-size: 20px; color: #fff; }
#app .mw-g-co-item small { color: var(--muted); }
#app .mw-g-co-price { font-family: var(--gf-n); font-size: 30px; color: #ffd23f; white-space: nowrap; }
#app .mw-g-co-price small { font-size: 13px; color: var(--muted); }
#app .mw-g-check { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; font-size: 13px; color: #dbe6f3; cursor: pointer; }
#app .mw-g-check input { width: 20px; height: 20px; flex: none; margin-top: 1px; accent-color: #2ff5dc; }
#app .mw-g-big.pay { width: 100%; margin-top: 8px; font-size: 24px; }
#app .mw-g-big:disabled { filter: grayscale(.8); opacity: .55; cursor: not-allowed; transform: none; }
#app .co .mw-g-modal { text-align: left; }
#app .mw-g-paid { font-size: 64px; text-align: center; }
#app .mw-g-spin { width: 34px; height: 34px; margin: 14px auto 4px; border-radius: 50%; border: 3px solid rgba(47, 245, 220, .2); border-top-color: #2ff5dc; animation: mwSpin 1s linear infinite; }
#app .mw-g-toast { position: fixed; bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 60; max-width: calc(100vw - 32px); text-align: center; }
#app .mw-g-toast.bad { background: rgba(255, 92, 122, .95); color: #fff; }
/* phones: bottom tab bar */
@media (max-width: 760px) {
  #app .mw-g-card { padding: max(8px, env(safe-area-inset-top)) 10px calc(70px + env(safe-area-inset-bottom)); gap: 8px; }
  #app .mw-g-h { gap: 8px !important; row-gap: 6px; }
  #app .mw-g-title { font-size: 20px !important; }
  #app .mw-g-coins { order: 4; width: 100%; justify-content: space-between; }
  #app .mw-g-coins em { display: none; }
  #app .mw-cur { padding: 2px 8px 2px 3px; } #app .mw-cur i { font-size: 15px; } #app .mw-cur .mw-ic { width: 18px; height: 18px; }
  #app .mw-g-ib { width: 32px; height: 32px; font-size: 14px; }
  #app .mw-g-acct { height: 32px; max-width: 120px; font-size: 12px; padding: 0 10px; }
  #app .mw-g-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 6px 6px max(6px, env(safe-area-inset-bottom)); gap: 4px !important; flex-wrap: nowrap !important;
    background: rgba(8, 12, 22, .96); border-top: 1px solid var(--line-strong); }
  #app .mw-g-tabs .tbtn { min-width: 0 !important; padding: 5px 2px 6px; font-size: 12px; display: flex; flex-direction: column; align-items: center; gap: 1px; border-radius: 10px; }
  #app .mw-g-tabs .tbtn span { margin: 0; font-size: 18px; }
  #app .mw-g-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
  #app .mw-g-hero > b { font-size: 16px; }
  #app .mw-g-stage { min-height: 0; height: 100%; }
  #app .mw-g-heroimg { height: 84px; }
  #app .mw-g-hname { font-size: 24px; }
  #app .mw-g-big { font-size: 22px; padding: 10px 34px 12px 40px; }
  #app .mw-g-seasons .tbtn { font-size: 12px; padding: 5px 10px; }
  #app .mw-g-tips { display: none; }
  #app .mw-g-over { overflow: auto; justify-content: flex-start; padding-top: 18px; }
  #app .mw-g-foot { font-size: 10px; }
}
#app { background: transparent !important; display: flex !important; place-items: initial; z-index: auto; }
#app .mw-g-modal p, #app .mw-g-modal .mw-g-tip { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 13px; font-weight: 400; letter-spacing: 0; }
#app .mw-g-modal p b { font-weight: 700; }
#app .mw-g-modal .mw-g-big span { letter-spacing: 2px; }
#app .mw-g-big { letter-spacing: 3px; }
