/* v529 · Modo Visita Social e Inventario. Cristal obsidiana con el acento de la skin; controles de 44 px en su regla base (§6.4);
 * movimiento solo con transform y opacity y curvas oficiales (§6.1, §6.2). Las reglas por data-pf-cmd deciden antes del primer pintado (V-01). */

/* Perfil ajeno: la hotbar privada no llega a pintarse; la social sí. El perfil propio, al revés. */
html:not([data-pf-cmd="propio"]) #personalizacion-hotbar-section > .pf-section-head,
html:not([data-pf-cmd="propio"]) #personalizacion-hotbar-section > .hud-hotbar { display: none !important; }
html[data-pf-cmd="propio"] #vs-hotbar,
html[data-pf-cmd="propio"] #vs-paneles,
html[data-pf-cmd="propio"] .vs-visitar,
html[data-pf-cmd="propio"] #vs-comida { display: none !important; }
html:not([data-pf-cmd="propio"]) #pf-inventario { display: none !important; }
/* perfil-social.js monta estas tarjetas antes de que se muevan a sus slots: desde el primer pintado solo viven ahí. */
#pf-social > .pfs-emotes, #pf-social > #pfs-crew { display: none !important; }
/* §7.278 · Seguir: píldora de la esquina superior izquierda de la tarjeta, gemela del engrane del dueño. Se ve de 36 px; toca en 48. */
html:not(#vs-nunca) body .pf-hero > .vs-seguir {
  position: absolute; z-index: 20; top: 0.5rem; left: 0.5rem; min-height: 48px; min-width: 48px; padding: 0 0.85rem; background: transparent; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; font: 800 11px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
  color: #fde68a; text-shadow: 0 1px 0 #000; touch-action: manipulation; isolation: isolate; transition: transform 140ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.vs-seguir::before {
  content: ""; position: absolute; left: 0; right: 0; top: 6px; bottom: 6px; z-index: -1; border-radius: 999px; border: 1px solid rgba(251, 191, 36, 0.62);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 46%), rgba(9, 10, 16, 0.82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.24), inset -1px -2px 0 rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(0, 0, 0, 0.55), 0 0 12px rgba(251, 191, 36, 0.26);
}
html:not(#vs-nunca) body .pf-hero > .vs-seguir[aria-pressed="true"] { color: #1a1205 !important; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35); }
.vs-seguir[aria-pressed="true"]::before { border-color: #fde68a; background: linear-gradient(180deg, #fde68a 0%, #fbbf24 55%, #b45309 100%); }
.vs-seguir:active { transform: scale(0.95); }
.vs-seguir:disabled { opacity: 0.45; cursor: default; }
.vs-seguir:focus-visible { outline: 2px solid #fde68a; outline-offset: -2px; border-radius: 999px; }

/* §7.278 · Visitar: cápsula de cromo y neón sobre el hábitat, sin alterar su caja. 48 px de toque. Las skins pintan todo botón con marco: aquí manda la cápsula. */
html:not(#vs-nunca) body #power-companion-box > .vs-visitar {
  position: absolute; z-index: 30; right: 8px; top: 8px; bottom: auto; min-height: 48px; min-width: 48px; padding: 0 0.6rem 0 0.35rem; display: inline-flex; align-items: center; gap: 0.2rem; cursor: pointer; touch-action: manipulation; color: #ecfeff;
  font: 800 10px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.06em; text-transform: uppercase; text-shadow: 0 0 6px rgba(34, 211, 238, 0.85), 0 1px 0 #000;
  border: 2px solid transparent !important; border-radius: 999px !important; outline: 0;
  background: radial-gradient(90% 90% at 50% 120%, rgba(34, 211, 238, 0.42), transparent 62%) padding-box, linear-gradient(180deg, rgba(34, 211, 238, 0.24) 0%, rgba(34, 211, 238, 0) 46%) padding-box, linear-gradient(#0a0d18, #0a0d18) padding-box, linear-gradient(180deg, #f8fafc 0%, #94a3b8 34%, #334155 52%, #cbd5e1 78%, #64748b 100%) border-box !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 -2px 4px rgba(0, 0, 0, 0.7), 0 0 14px rgba(34, 211, 238, 0.55), 0 6px 12px -4px rgba(0, 0, 0, 0.8) !important;
  transition: transform 140ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
html:not(#vs-nunca) body #power-companion-box > .vs-visitar::before, html:not(#vs-nunca) body #power-companion-box > .vs-visitar::after { content: none !important; }
/* A47 · 7 (Kley, 28-11, visita a Mayi) ─────────────────────────────────────────────────────────────────────────────────────────────────────
 * (b) VISITAR tapaba el parlante (abajo a la derecha es piso y muebles): sube a la esquina de ARRIBA a la derecha, sobre el techo del cuarto,
 *     simétrico al botón de pantalla completa (arriba a la izquierda). En pantalla completa respeta la zona segura de arriba.
 * (c) Debajo del cuarto quedaba una franja negra vacía: las filas de la consola (.power-console-hints vacía y .power-console-extras, cuyo único
 *     botón no se muestra en la visita) seguían en la rejilla de la tarjeta y sumaban sus huecos. En la visita no ocupan lugar (V-07): el marco
 *     queda parejo, como a los costados. html[data-pf-cmd] lo decide el script del <head> antes del primer pintado (V-04).
 * (a) «Estás viendo el perfil de … · solo lectura» se leía DETRÁS de los botones de la barra al bajar la página: la barra (pegajosa, z 100) tenía
 *     el fondo al 94 % en táctil (power-alfa.css, cabecera §6) y el texto de abajo se transparentaba entre los botones. En el perfil, opaca. */
html:not(#vs-nunca) body #power-companion-box:is(.pet-fullscreen-active, .pw-habitat-fullscreen) > .vs-visitar { top: max(8px, var(--pa-sa-top, env(safe-area-inset-top, 0px))); right: max(8px, var(--pa-sa-right, env(safe-area-inset-right, 0px))); }
html[data-pf-cmd="ajeno"]:not(#vs-a):not(#vs-b):not(#vs-c) body #hud-panel-companero .hud-panel-inner > :is(.power-console-hints, .power-console-extras) { display: none !important; }
@media (pointer: coarse) {
  html:not(#pa-nunca):not(#vs-a):not(#vs-b) body.power-hud header.power-console-header { background-color: rgb(9, 8, 12) !important; }
}
.vs-visitar-ico { flex: none; display: inline-flex; filter: drop-shadow(0 0 4px rgba(34, 211, 238, 0.7)); }
.vs-visitar-ico[hidden] { display: none; }
.vs-visitar-ico .vs-pix { width: 20px; height: 20px; }
html:not(#vs-nunca) body #power-companion-box > .vs-visitar:active { transform: scale(0.95); }
html:not(#vs-nunca) body #power-companion-box > .vs-visitar:focus-visible { outline: 2px solid #a5f3fc; outline-offset: 1px; }
html:not(#vs-nunca) body #power-companion-box > .vs-visitar[aria-pressed="true"] { color: #fff; text-shadow: 0 0 8px rgba(251, 191, 36, 0.9), 0 1px 0 #000; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 -2px 4px rgba(0, 0, 0, 0.7), 0 0 16px rgba(251, 191, 36, 0.7), 0 6px 12px -4px rgba(0, 0, 0, 0.8) !important; }

/* §7.278 · Barra de visita: la misma consola del Hotbar de personalización. Chasis con bisel y fichas de cristal obsidiana con número, arte pixel y rótulo. */
.vs-hotbar {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.4rem; min-width: 0; margin-bottom: 0.65rem; padding: 0.45rem; border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0) 38%), radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--power-accent, #fff) 10%, transparent) 0%, transparent 60%), rgba(13, 13, 18, 0.74);
  border: 1px solid rgba(200, 170, 110, 0.38); box-shadow: inset 0 1px 0 rgba(255, 236, 190, 0.2), inset 0 -1px 0 rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(0, 0, 0, 0.55), 0 10px 24px rgba(0, 0, 0, 0.55);
}
.vs-slot {
  --vs-luz: 34, 211, 238;
  position: relative; min-width: 0; min-height: 68px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 0.1rem; padding: 0.3rem 0.15rem 0.3rem; border-radius: 12px; cursor: pointer; touch-action: manipulation; overflow: hidden;
  color: #f4f4f5; -webkit-tap-highlight-color: transparent;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.03) 28%, transparent 46%), linear-gradient(180deg, rgba(var(--vs-luz), 0.12) 0%, transparent 38%, rgba(0, 0, 0, 0.35) 100%), radial-gradient(120% 80% at 50% 110%, rgba(var(--vs-luz), 0.22), transparent 60%), rgba(9, 10, 16, 0.78);
  border: 1px solid rgba(var(--vs-luz), 0.7);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.28), inset -1px -2px 0 rgba(0, 0, 0, 0.65), inset 0 0 14px rgba(var(--vs-luz), 0.22), 0 0 0 1px rgba(0, 0, 0, 0.55), 0 10px 18px -6px rgba(0, 0, 0, 0.75), 0 0 12px rgba(var(--vs-luz), 0.32);
  transition: transform 140ms cubic-bezier(0.34, 1.56, 0.64, 1), filter 160ms cubic-bezier(0.16, 1, 0.3, 1);
}
html:not(#vs-nunca) body.power-hud .vs-hotbar .vs-slot, .vs-slot { -webkit-backdrop-filter: blur(12px) saturate(150%) !important; backdrop-filter: blur(12px) saturate(150%) !important; }
.vs-slot[data-vs-slot="stickers"] { --vs-luz: 232, 121, 249; }
.vs-slot[data-vs-slot="regalo"] { --vs-luz: 251, 191, 36; }
.vs-slot[data-vs-slot="crew"] { --vs-luz: 74, 222, 128; }
/* Destello de tap: solo opacidad y transform. */
.vs-slot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%); transform: translateX(-60%); }
.vs-slot:active::after { opacity: 1; transform: translateX(60%); transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1); }
.vs-slot:active { transform: scale(0.95); }
.vs-slot:focus-visible { outline: 2px solid rgb(var(--vs-luz)); outline-offset: 2px; }
.vs-slot[aria-expanded="true"] { transform: translate3d(0, -3px, 0); border-width: 1.5px; filter: brightness(1.14); }
.vs-slot-num { position: absolute; top: 0.25rem; left: 0.38rem; font: 800 0.62rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.04em; color: rgb(var(--vs-luz)); text-shadow: 0 0 8px rgba(var(--vs-luz), 0.9); pointer-events: none; }
.vs-slot-ico { flex: none; display: flex; line-height: 0; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 5px rgba(var(--vs-luz), 0.5)); }
.vs-pix { display: block; width: 32px; height: 32px; }
.vs-slot-txt { max-width: 100%; font: 800 9px/1.1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #f4f4f5; text-shadow: 0 0 6px rgba(var(--vs-luz), 0.75); }
.vs-slot.is-latido .vs-slot-ico { animation: vsLatido 460ms cubic-bezier(0.34, 1.56, 0.64, 1) 1; }
@keyframes vsLatido { 0% { transform: scale(1); } 45% { transform: scale(1.32) rotate(-8deg); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .vs-slot, .vs-slot:active, .vs-slot[aria-expanded="true"] { transform: none; transition: none; } .vs-slot:active::after { transition: none; } .vs-slot.is-latido .vs-slot-ico { animation: none; } }

#vs-paneles > [data-vs-panel] { margin-bottom: 0.65rem; padding: 0.7rem; min-width: 0; border-radius: 0.85rem; background: rgba(9, 9, 13, 0.62); border: 1px solid rgba(255, 255, 255, 0.12); }
#vs-panel-stickers .pfs-emotes, #vs-panel-crew .pfs-crew { margin: 0; }
.vs-kicker { margin: 0 0 0.4rem; font: 700 9px/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.12em; text-transform: uppercase; color: #d4d4d8; }
.vs-vacio { margin: 0; font-size: 0.8rem; color: #d4d4d8; }
.vs-aviso { margin: 0 0 0.65rem; font-size: 0.8rem; color: #fde68a; }
.vs-aviso[hidden] { display: none; }
.vs-regalos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); gap: 0.4rem; }
.vs-inv-fila { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr)); gap: 0.4rem; margin-bottom: 0.7rem; }
.vs-regalo, .vs-comer {
  min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem; padding: 0.3rem 0.5rem; border-radius: 0.65rem;
  cursor: pointer; touch-action: manipulation; color: #f4f4f5; font-size: 0.75rem; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.16);
  transition: transform 120ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.vs-regalo:active, .vs-comer:active { transform: scale(0.95); }
.vs-regalo:disabled, .vs-comer:disabled { opacity: 0.45; cursor: default; }
.vs-regalo-ico { flex: 0 0 auto; font-size: 1rem; }
.vs-regalo-txt { flex: 1 1 auto; min-width: 0; text-align: left; overflow-wrap: anywhere; }
.vs-comida {
  position: absolute; z-index: 31; left: 50%; bottom: 66px; width: min(92%, 22rem); padding: 0.6rem; border-radius: 0.85rem; transform: translateX(-50%);
  background: rgba(9, 9, 13, 0.82); border: 1px solid rgba(255, 255, 255, 0.24); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.vs-comida[hidden] { display: none; }
.vs-comida-fila { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.vs-comunes-lista { margin: 0 0 0.6rem; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.vs-comunes-lista a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 0.7rem; border-radius: 999px; color: #fff; font-size: 0.8rem; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.16); }

.pf-inventario { margin-bottom: 1rem; min-width: 0; }
.pf-inventario > summary { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; cursor: pointer; list-style: none; touch-action: manipulation; font-weight: 800; color: #f4f4f5; }
.pf-inventario > summary::-webkit-details-marker { display: none; }
.pf-inventario-cnt { font: 700 10px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.08em; color: var(--power-accent, #fff); white-space: nowrap; }
.pf-inventario-cuerpo { padding-top: 0.5rem; min-width: 0; }
.vs-inv-item { min-width: 0; display: flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; color: #f4f4f5; }
.vs-inv-muebles { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.vs-inv-muebles img { display: block; width: 48px; height: 48px; image-rendering: pixelated; }
@media (prefers-reduced-motion: reduce) { .vs-slot.is-latido .vs-slot-ico { animation: none; } }

/* t-pulido-kley-2411 · 4 (Kley 24-11) · De visita, «A casa» es SOLO una casita chica y clara: círculo de 44 px (el mínimo de toque),
   sin texto (queda en el aria-label «Volver a mi casa»). Fuera de visita, «Visitar» sigue como siempre. */
html:not(#vs-nunca) body #power-companion-box > .vs-visitar[aria-pressed="true"] {
  min-width: 44px; width: 44px; height: 44px; min-height: 44px; padding: 0; justify-content: center; gap: 0;
}
html:not(#vs-nunca) body #power-companion-box > .vs-visitar[aria-pressed="true"] .vs-visitar-txt {
  position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
html:not(#vs-nunca) body #power-companion-box > .vs-visitar[aria-pressed="true"] .vs-visitar-ico .vs-pix { width: 22px; height: 22px; }

/* t-pulido-kley-2411 · 5 · La barra de visita, más chica: fichas de 52 px (antes 68), arte de 24 px, menos aire. Sigue de 44 px de toque. */
.vs-hotbar { gap: 0.3rem; padding: 0.3rem; margin-bottom: 0.5rem; border-radius: 14px; }
.vs-slot { min-height: 52px; padding: 0.2rem 0.1rem 0.22rem; border-radius: 10px; }
.vs-slot .vs-pix { width: 24px; height: 24px; }
.vs-slot-num { top: 0.18rem; left: 0.3rem; font-size: 0.55rem; }
.vs-slot-txt { font-size: 8px; letter-spacing: 0.08em; }

/* t-pulido-kley-2411 · 13 (Kley 24-11) · SEGUIR más chico, moderno y con la marca (acento de la skin; por defecto el rojo Power),
   sin el amarillo. Toque de 48 px (perfil_identidad_visita); lo que se ve es chico. «a» = píldora de 30 px con ícono y texto · «b» = círculo de 32 px solo ícono. */
html:not(#vs-nunca) body .pf-hero > .vs-seguir[data-estilo] {
  min-height: 48px; min-width: 48px; padding: 0 0.55rem; gap: 0.3rem;
  color: #fff; text-shadow: none; font: 700 10px/1 'Rajdhani', 'Orbitron', ui-sans-serif, system-ui, sans-serif; letter-spacing: 0.06em;
}
html:not(#vs-nunca) body .pf-hero > .vs-seguir[data-estilo]::before {
  top: 9px; bottom: 9px; border: 1px solid color-mix(in srgb, var(--power-accent, #ff2a4a) 70%, transparent);
  background: rgba(9, 10, 16, 0.55); box-shadow: none; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
html:not(#vs-nunca) body .pf-hero > .vs-seguir[data-estilo][aria-pressed="true"] { color: #fff !important; text-shadow: none; }
html:not(#vs-nunca) body .pf-hero > .vs-seguir[data-estilo][aria-pressed="true"]::before {
  border-color: var(--power-accent, #ff2a4a); background: var(--power-accent, #ff2a4a);
}
.vs-seguir-ico { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
html:not(#vs-nunca) body .pf-hero > .vs-seguir[data-estilo="b"] { width: 48px; padding: 0; }
html:not(#vs-nunca) body .pf-hero > .vs-seguir[data-estilo="b"]::before { left: 8px; right: 8px; top: 8px; bottom: 8px; border-radius: 50%; }
html:not(#vs-nunca) body .pf-hero > .vs-seguir[data-estilo="b"] .vs-seguir-ico { width: 16px; height: 16px; }
html:not(#vs-nunca) body .pf-hero > .vs-seguir[data-estilo="b"] .vs-seguir-txt {
  position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
html:not(#vs-nunca) body .pf-hero > .vs-seguir[data-estilo]:focus-visible { outline: 2px solid var(--power-accent, #ff2a4a); }

/* t-pulido-kley-2411 · 9 · CREW de otra persona: a quiénes sigue. Filas compactas (foto 28 px, apodo, «la seguís» o Seguir). */
.vs-sigue-lista { list-style: none; margin: 0.25rem 0 0; padding: 0; display: grid; gap: 0.25rem; }
.vs-sigue-fila { display: flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0 0.15rem 0 0.25rem; border-radius: 10px; background: rgba(255, 255, 255, 0.03); }
.vs-sigue-quien { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 0.5rem; min-height: 44px; color: #f4f4f5; text-decoration: none; }
.vs-sigue-quien img, .vs-sigue-ini { flex: none; width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.vs-sigue-ini { display: grid; place-items: center; background: rgba(255, 255, 255, 0.08); font: 800 12px/1 ui-sans-serif, system-ui, sans-serif; color: #e4e4e7; }
.vs-sigue-nom { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 13px/1.2 'Rajdhani', ui-sans-serif, system-ui, sans-serif; }
.vs-sigue-chip { flex: none; padding: 0.2rem 0.5rem; border-radius: 999px; font: 700 10px/1 ui-sans-serif, system-ui, sans-serif; letter-spacing: 0.04em; color: #a1a1aa; border: 1px solid rgba(255, 255, 255, 0.14); }
.vs-sigue-chip--on { color: #fff; border-color: color-mix(in srgb, var(--power-accent, #ff2a4a) 70%, transparent); background: color-mix(in srgb, var(--power-accent, #ff2a4a) 22%, transparent); }
.vs-sigue-btn { flex: none; min-height: 44px; min-width: 44px; padding: 0 0.7rem; border: 0; background: transparent; cursor: pointer; color: #fff; font: 700 11px/1 ui-sans-serif, system-ui, sans-serif; letter-spacing: 0.04em; position: relative; isolation: isolate; touch-action: manipulation; }
.vs-sigue-btn::before { content: ""; position: absolute; inset: 9px 0; z-index: -1; border-radius: 999px; background: var(--power-accent, #ff2a4a); }
.vs-sigue-btn:disabled { opacity: 0.55; cursor: default; }
.vs-sigue-btn:focus-visible { outline: 2px solid var(--power-accent, #ff2a4a); outline-offset: 2px; border-radius: 999px; }
