/* «En línea» (js/en-linea.js): el contador de la barra de comunidades y su panel de burbujas. */
.world-bar__online { display: flex; align-items: center; gap: 8px; padding: 0 18px; border: 0; border-inline-start: 1px solid #ffffff14; background: transparent; color: #b9adbd; font: 500 14px var(--font-body); cursor: pointer; transition: color .2s, background .2s; }
/* On wide screens the bar spaces its items; this one sits flush against «Entrar». */
.world-bar__online { margin-inline-end: -24px; }
.world-bar__online:hover, .world-bar__online[aria-expanded="true"] { color: #fff; background: #ffffff09; }
.world-bar__online:focus-visible { outline-offset: -5px; }
/* Up to three faces of who is here, overlapping. */
.world-bar__online-caras { display: flex; align-items: center; margin-right: 2px; }
.world-bar__online-caras .perfil-icono { width: 24px; height: 24px; font-size: 11px; box-shadow: 0 0 0 2px #0b090f; }
.world-bar__online-caras .perfil-icono + .perfil-icono { margin-left: -8px; }
.world-bar__online-caras .perfil-icono__marco { display: none; }
.world-bar__online-dot { position: relative; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #77707f; }
.world-bar__online[data-estado="en-vivo"] .world-bar__online-dot { background: #6be08a; box-shadow: 0 0 10px #6be08a; }
.world-bar__online[data-estado="en-vivo"] .world-bar__online-dot::after { content: ''; position: absolute; inset: -4px; border: 1px solid #6be08a; border-radius: 50%; animation: en-linea-pulso 2.4s ease-out infinite; }
@keyframes en-linea-pulso { from { transform: scale(.6); opacity: .9; } to { transform: scale(1.8); opacity: 0; } }
html.motion-off .world-bar__online-dot::after { display: none; }
@media (prefers-reduced-motion: reduce) { .world-bar__online-dot::after { display: none; } }
.world-bar__online-count { min-width: 1ch; font: 600 14px var(--font-mono); font-variant-numeric: tabular-nums; color: #f5eee4; }
@media (max-width: 900px) {
  .world-bar__online { flex: none; margin-inline-end: 0; padding: 0 12px; }
  .world-bar__online-label { display: none; }
}
@media (max-width: 560px) { .world-bar__online-caras { display: none; } }
/* Small phones: the tab numbers (01, 02) go, so a two-digit count never breaks a community name in two. */
@media (max-width: 430px) { .world-choice > span { display: none; } }
@media (max-width: 380px) { .world-bar__online { gap: 6px; padding: 0 9px; } }

/* Panel */
.en-linea { position: fixed; top: calc(var(--world-bar-height) + 8px); right: 12px; z-index: 80; display: grid; grid-template-rows: auto auto 1fr;
  width: min(460px, calc(100vw - 24px)); max-height: min(78vh, 680px); overflow: hidden; border: 1px solid #dec49447; border-radius: 22px; background: #120e17f7; box-shadow: 0 24px 70px #000c;
  color: #f5eee4; font-family: var(--font-body); backdrop-filter: blur(12px); }
html[data-world="helluva"] .en-linea { border-color: #a884f45c; background: #0f0d1ff7; }
.en-linea__cabecera { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 10px 18px; border-bottom: 1px solid #ffffff1a; }
.en-linea__cabecera h2 { display: flex; align-items: baseline; gap: 10px; font: 400 22px/1.1 var(--font-display); }
.en-linea__total { font: 600 14px var(--font-mono); color: #6be08a; }
.en-linea__total:empty { display: none; }
.en-linea__cerrar { width: 40px; height: 40px; border: 1px solid #ffffff2e; border-radius: 50%; background: transparent; color: #f5eee4; font-size: 15px; cursor: pointer; }
.en-linea__cerrar:hover { background: #ffffff10; }
.en-linea__herramientas { display: grid; gap: 10px; padding: 12px 18px 4px; }
.en-linea__buscar { width: 100%; min-height: 42px; padding: 9px 16px; border: 1px solid #ffffff2e; border-radius: 99px; background: #07050a; color: #fff; font: 15px var(--font-body); }
.en-linea__buscar:focus-visible { outline: 2px solid #edce8e; outline-offset: 1px; }
html[data-world="helluva"] .en-linea__buscar:focus-visible { outline-color: #c6fb89; }
.en-linea__filtros { display: flex; flex-wrap: wrap; gap: 6px; }
.en-linea__filtro { min-height: 34px; padding: 6px 12px; border: 1px solid #ffffff26; border-radius: 99px; background: transparent; color: #c2b8c9; font: 600 12.5px var(--font-body); cursor: pointer; }
.en-linea__filtro[aria-pressed="true"] { border-color: #edce8e; background: #edce8e1f; color: #fff4df; }
html[data-world="helluva"] .en-linea__filtro[aria-pressed="true"] { border-color: #c6fb89; background: #c6fb891c; color: #f1ffe0; }
.en-linea__cuerpo { overflow: auto; overscroll-behavior: contain; padding: 8px 12px 16px; }
/* Bubbles: as many as fit per row; the list grows 60 at a time while scrolling. */
.en-linea__burbujas { display: grid; grid-template-columns: repeat(auto-fill, minmax(82px, 1fr)); gap: 4px; margin: 0; padding: 0; list-style: none; }
.en-linea__burbuja { position: relative; display: grid; justify-items: center; align-content: start; gap: 7px; width: 100%; min-height: 122px; padding: 10px 4px 8px; border: 0; border-radius: 14px; background: transparent; color: inherit; cursor: pointer; }
.en-linea__burbuja:hover { background: #ffffff0d; }
.en-linea__burbuja:focus-visible { background: #ffffff0d; outline-offset: -2px; }
/* The same room above and below every face, framed or not, so all the names line up. */
.en-linea__cara { position: relative; display: grid; place-items: center; margin: 12px 0 10px; }
.en-linea__burbujas .en-linea__icono { width: 54px; height: 54px; font-size: 24px; box-shadow: 0 0 0 2px var(--p), 0 0 14px color-mix(in srgb, var(--p) 35%, transparent); }
.en-linea__verificada { position: absolute; right: -4px; bottom: -2px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #120e17; color: #edce8e; font-size: 12px; box-shadow: 0 0 0 1px #edce8e88; }
.en-linea__nombre { --nombre-tamano: 14px; display: -webkit-box; max-width: 100%; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.2; text-align: center; overflow-wrap: anywhere; }
.en-linea__tu { position: absolute; top: 6px; right: 6px; padding: 1px 6px; border: 1px solid #ffffff33; border-radius: 99px; background: #120e17; font: 600 11px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: #c2b8c9; }
.en-linea__siguen { grid-column: 1 / -1; height: 1px; }
/* The roleplay zone under the name, and whom you follow. */
.en-linea__zona { max-width: 100%; overflow: hidden; font: 600 10.5px/1.3 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; text-overflow: ellipsis; color: #c2b8c9; }
.en-linea__sigo { position: absolute; top: 6px; right: 6px; padding: 1px 6px; border: 1px solid #6be08a88; border-radius: 99px; background: #120e17; font: 600 10px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: #9ff0b4; }
.en-linea__staff { padding: 1px 7px; border-radius: 99px; background: linear-gradient(100deg, #edce8e, #d4a548); color: #1a1008; font: 700 9.5px/1.4 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.en-linea__rol { display: inline-flex; align-items: center; min-height: 40px; margin: 6px 6px 0; font-weight: 600; color: #edce8e; }
html[data-world="helluva"] .en-linea__rol { color: #c6fb89; }
.en-linea__estado, .en-linea__mas { margin: 8px 6px 4px; font-size: 14px; line-height: 1.5; color: #c2b8c9; }
/* Visitors: only the numbers. */
.en-linea__cifras { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 6px 6px 0; }
.en-linea__cifra { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid #ffffff1f; border-radius: 16px; }
.en-linea__cifra strong { font: 400 34px/1 var(--font-display); color: #f5d58e; }
.en-linea__cifra.is-helluva strong { color: #d8fe85; }
.en-linea__cifra span { font: 600 11px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: #c2b8c9; }
.en-linea__pie { display: grid; gap: 8px; margin: 12px 6px 0; padding: 12px 16px; border-radius: 14px; background: #ffffff08; box-shadow: inset 3px 0 0 #edce8e; font-size: 14px; line-height: 1.5; color: #d9cfd6; }
html[data-world="helluva"] .en-linea__pie { box-shadow: inset 3px 0 0 #c6fb89; }
.en-linea__enlace { justify-self: start; display: inline-flex; align-items: center; min-height: 40px; font-weight: 600; }
@media (max-width: 560px) {
  .en-linea { right: 8px; left: 8px; width: auto; max-height: calc(100dvh - var(--world-bar-height) - 24px); }
  .en-linea__burbujas { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); }
}
