/* 修复了 modal 的强制隐藏问题 */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.85); display: grid; place-items: center; z-index: 999; backdrop-filter: blur(5px); }
.modal[hidden] { display: none !important; }
.modal-content { background: linear-gradient(180deg, #2a1a1e, #11080a); border: 1px solid var(--gold); padding: 25px; border-radius: 16px; width: 90%; max-width: 380px; text-align: center; position: relative; }
.close-btn { position: absolute; top: 10px; right: 15px; background: none; border: none; color: var(--muted); font-size: 20px; cursor: pointer; }
.radar-spinner { width: 80px; height: 80px; border-radius: 50%; border: 2px solid rgba(240,201,107,.2); margin: 0 auto 20px; position: relative; }
.radar-spinner::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--gold); animation: radar 1.5s linear infinite; }
@keyframes radar { 0% { transform: scale(.3); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
.coin { position: fixed; top: -20px; color: var(--gold); z-index: 200; pointer-events: none; animation: fall 1.5s ease-in forwards; text-shadow: 0 0 15px var(--gold); font-size: 24px;}
@keyframes fall { to { transform: translateY(110vh) rotate(360deg); opacity: 0; } }
.toast { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(20px); background: rgba(20,12,14,.95); border: 1px solid var(--gold); color: var(--gold); padding: 12px 24px; border-radius: 99px; font-size: 13px; font-weight: bold; z-index: 300; opacity: 0; transition: 0.3s; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.live-broadcast { position: fixed; top: 80px; left: 20px; z-index: 10; pointer-events: none; }
.lb-item { background: rgba(0,0,0,.6); border: 1px solid var(--line); padding: 8px 12px; border-radius: 99px; font-size: 11px; color: #ccc; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; animation: slideIn .3s ease-out; backdrop-filter: blur(4px);}
.lb-item b { color: var(--gold); }
.avatar-s { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 10px; }
@keyframes slideIn { from { transform: translateX(-20px); opacity: 0; } to { transform: none; opacity: 1; } }