/* Online pieces: presence and offline pills, join/leave toasts, quick chat wheel, social panel, event board. */
.netpill { position: fixed; left: 50%; top: 10px; transform: translateX(-50%); z-index: 40; padding: 5px 12px; border-radius: 999px; font: 600 13px/1.2 Fredoka, sans-serif;
  background: rgba(20, 16, 40, .72); color: #fff; backdrop-filter: blur(6px); pointer-events: none; letter-spacing: .02em; }
.netpill.off { color: #ffd0d8; }
.netpill.on::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #5fd38a; margin-right: 6px; vertical-align: 1px; }
body.touch .netpill { top: 6px; font-size: 12px; }
.nettoast { position: fixed; left: 12px; bottom: 90px; z-index: 40; display: flex; flex-direction: column; gap: 4px; pointer-events: none; }
.nettoast div { background: rgba(20, 16, 40, .7); color: #fff; font: 600 13px Fredoka, sans-serif; padding: 4px 10px; border-radius: 10px; animation: nvfade 4s forwards; }
@keyframes nvfade { 0%, 80% { opacity: 1 } 100% { opacity: 0 } }
.qchat { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; background: rgba(10, 8, 24, .35); }
.qchat .qwrap { background: #fff; border-radius: 22px; padding: 14px; max-width: min(560px, 94vw); max-height: 80vh; overflow: auto; box-shadow: 0 10px 40px rgba(0,0,0,.3); }
.qchat h3 { margin: 6px 4px 8px; font: 700 15px Fredoka, sans-serif; color: #6a4cff; }
.qchat .qgrid { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.qchat button { border: 0; border-radius: 999px; padding: 8px 12px; font: 600 14px Fredoka, sans-serif; background: #f1ecff; color: #2a2150; cursor: pointer; }
.qchat button:hover, .qchat button:focus { background: #6a4cff; color: #fff; }
.qchat input { width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: 12px; border: 2px solid #e4ddff; font: 600 15px Nunito, sans-serif; }
.socialbtn { position: fixed; right: 12px; bottom: 12px; z-index: 35; display: flex; gap: 8px; }
.socialbtn button { width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); box-shadow: 0 4px 14px rgba(0,0,0,.2); font-size: 22px; cursor: pointer; }
body.touch .socialbtn { right: auto; left: 50%; transform: translateX(-50%); bottom: 8px; }
.social h3 { margin-top: 14px; }
.social .row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid #eee; }
.social .row .nm { flex: 1; font-weight: 700; }
.social .dot { width: 9px; height: 9px; border-radius: 50%; background: #bbb; }
.social .dot.on { background: #5fd38a; }
.social .code { font: 700 26px/1 Fredoka, monospace; letter-spacing: .15em; color: #6a4cff; }
.evboard .ev { border: 2px solid #eee; border-radius: 14px; padding: 10px 12px; margin: 8px 0; }
.evboard .ev.official { border-color: #ffd23f; }
.evboard .ev h4 { margin: 0 0 4px; font: 700 16px Fredoka, sans-serif; }
.evboard .ev .when { color: #6a4cff; font-weight: 700; font-size: 13px; }
.lb table { width: 100%; border-collapse: collapse; }
.lb td, .lb th { padding: 5px 6px; text-align: left; border-bottom: 1px solid #eee; font-size: 14px; }
.lb tr.you td { background: #fff6c9; font-weight: 700; }
.lb .ver { color: #2a9d4b; font-size: 12px; }
.buildnote { font-size: 12px; color: #6a4cff; }
.voicebar { position: fixed; right: 14px; top: 64px; z-index: 36; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.voicebar .talk { width: 72px; height: 72px; border-radius: 50%; border: 0; background: #ff4f8b; color: #fff; font: 700 14px Fredoka, sans-serif; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.voicebar .talk.on { background: #5fd38a; transform: scale(1.06); }
.voicebar .spk { background: rgba(20,16,40,.7); color: #fff; border-radius: 999px; padding: 3px 10px; font: 600 12px Fredoka, sans-serif; }
.voicebar .spk.talking::before { content: '\1F50A  '; }
