/* 🟢 Who's online and ⚔️ challenges (js/online.js): the Leaderboard's "Online now" strip, the ask sheet, a toast */
.ol-sheet {
  position: fixed; inset: 0; z-index: 9000; display: grid; place-items: center; padding: 16px;
  background: rgba(29, 34, 51, .45); font-family: "Nunito", system-ui, sans-serif; animation: ol-fade .2s ease-out;
}
.ol-card {
  width: min(520px, 100%); background: #fffdf7; border: 3px solid #1d2233; border-radius: 28px;
  box-shadow: 0 6px 0 #1d2233; padding: 26px 26px 22px; text-align: center; color: #1d2233;
  animation: ol-pop .32s cubic-bezier(.2, 1.5, .4, 1);
}
.ol-card h2 { font-family: "Lilita One", system-ui, sans-serif; font-weight: 400; font-size: 34px; margin: 12px 0 4px; line-height: 1.1; }
.ol-card p { font-weight: 800; font-size: 19px; color: #4a4f63; margin: 0 0 18px; }
.ol-faces { display: flex; align-items: center; justify-content: center; gap: 16px; }
.ol-faces > b { font-size: 40px; animation: ol-pulse 1.1s ease-in-out infinite; }
.ol-face {
  display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; background: #fff;
  border: 3px solid #1d2233; box-shadow: 0 4px 0 #1d2233;
}
.ol-face svg.buddy { width: 72px; height: 72px; }
.ol-acts { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.ol-acts .big-btn { flex: 1 1 160px; max-width: 240px; }
.ol-toast {
  position: fixed; left: 50%; top: max(16px, env(safe-area-inset-top)); translate: -50% 0; z-index: 9100;
  max-width: calc(100% - 32px); background: #1d2233; color: #fff; font: 800 18px "Nunito", system-ui, sans-serif;
  padding: 12px 22px; border-radius: 999px; box-shadow: 0 4px 0 rgba(0, 0, 0, .25); text-align: center;
  animation: ol-drop .3s cubic-bezier(.2, 1.5, .4, 1); transition: opacity .5s, transform .5s;
}
.ol-toast.ol-out { opacity: 0; transform: translateY(-20px); }
@keyframes ol-fade { from { opacity: 0; } }
@keyframes ol-pop { from { transform: scale(.7); opacity: 0; } }
@keyframes ol-drop { from { transform: translateY(-30px); opacity: 0; } }
@keyframes ol-pulse { 50% { transform: scale(1.25) rotate(-8deg); } }

/* the Leaderboard's "Online now" strip (Everyone tab) */
.lb-online { width: min(820px, 100%); margin: 0 auto 22px; }
.lb-online h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-family: var(--f-display, "Lilita One"), system-ui; font-weight: 400; font-size: 24px; }
.lb-online h3 small { font-family: var(--f-body, "Nunito"), system-ui; font-weight: 800; font-size: 16px; color: #4a4f63; }
.ol-dot { width: 12px; height: 12px; border-radius: 50%; background: #2ec27e; box-shadow: 0 0 0 3px rgba(46, 194, 126, .25); flex: none; }
.lb-online-list { display: flex; gap: 12px; overflow-x: auto; padding: 4px 4px 10px; scrollbar-width: none; }
.lb-online-list::-webkit-scrollbar { display: none; }
.lb-online-kid {
  flex: none; display: flex; align-items: center; gap: 10px; background: #fff; border: 3px solid #1d2233; border-radius: 22px;
  box-shadow: 0 4px 0 #1d2233; padding: 8px 10px 8px 8px;
}
.lb-online-kid .lb-of { position: relative; display: grid; place-items: center; width: 52px; height: 52px; }
.lb-online-kid .lb-of svg.buddy { width: 48px; height: 48px; }
.lb-online-kid .lb-of .ol-dot { position: absolute; right: 0; bottom: 2px; border: 2px solid #fff; }
.lb-online-kid b { font-family: var(--f-display, "Lilita One"), system-ui; font-weight: 400; font-size: 22px; white-space: nowrap; }
.lb-online-kid .lb-busy { font-weight: 800; font-size: 15px; color: #8a8fa3; white-space: nowrap; padding: 0 6px; }
.lb-duel-btn {
  font: 900 17px "Nunito", system-ui, sans-serif; color: #fff; background: #e0573e; border: 3px solid #1d2233; border-radius: 999px;
  padding: 8px 14px; box-shadow: 0 3px 0 #1d2233; cursor: pointer; white-space: nowrap;
}
.lb-duel-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #1d2233; }
.lb-online-none { font-weight: 800; color: #4a4f63; font-size: 17px; margin: 0; }
#leaderboard .lb-name .ol-dot { display: inline-block; vertical-align: middle; margin-left: 6px; }

/* Home: how many are online, on the Leaderboard pill */
.pill .ol-count {
  display: inline-flex; align-items: center; gap: 5px; margin-left: 8px; padding: 2px 9px; border-radius: 999px;
  background: #e6f8ee; color: #138a52; font-weight: 900; font-size: .85em;
}
.pill .ol-count::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #2ec27e; }
